Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 wandering the Monastery: (12)
As of 2014-09-19 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (142 votes), past polls