Re: PDF::Parse not working
"Mr. Shawn H. Corey" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.pdfapi2 |
|---|---|
| Message-ID | <[email protected]> |
Rick Measham wrote:
> As this group is fairly PDF-competent, I'm looking for something perlish
> that can return PDF info similar to the 'pdfinfo' command on linux.
>
> I need at least:
> number of pages,
> size(s) of pages,
> creator (acrobat/imagemagick/pdf-api2)
>
> As per the topic, PDF::Parse just isn't working. Every file we throw at
> it croaks.
PDF::API2 can do all this.
$pdf = PDF::API2->new;
$pdf = PDF::API2->open(’some.pdf’);
$pagenumber = $pdf->pages;
for my $pagenum ( 1 .. $pagenumber ) {
$page = $pdf->openpage($pagenum);
($llx, $lly, $urx, $ury) = $page->get_mediabox;
# ...
}
%infohash = $pdf->info;
print "Creator: $infohash{Creator}\n";
--
Just my 0.00000002 million dollars worth,
Shawn
"For the things we have to learn before we can do them, we learn by
doing them."
Aristotle
To unsubscribe from this group, send an email to:
perl-text-pdf-modules-unsubscribe-Km8ibD4bFueDmjp1MlKEbA@public.gmane.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/perl-text-pdf-modules/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/perl-text-pdf-modules/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:perl-text-pdf-modules-digest-hHKSG33TihhbjbujkaE4pw@public.gmane.org
mailto:perl-text-pdf-modules-fullfeatured-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> To unsubscribe from this group, send an email to:
perl-text-pdf-modules-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/