Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 all is calm...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2017-01-21 05:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (182 votes). Check out past polls.