Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Count pages of PDF file

by davido (Archbishop)
on Jul 05, 2011 at 08:38 UTC ( #912771=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use PDF::API2;
    
    ...
    my $pdf = PDF::API2->open( 'yourfile.pdf' );
    my $count = $pdf->pages();
    print "O frabjous day! The PDF has $count pages.  Callooh! Callay!\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://912771]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2016-06-30 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (389 votes). Check out past polls.