Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
[Discipulus]: ah! ++choroba for seek $FH, $. = 0, 0;
[Discipulus]: anyway I lost 15 minutes with lc $str used by me instead of $str = lc $str

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-06-26 11:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (577 votes). Check out past polls.