Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Count pages of PDF file

by bimleshsharma (Beadle)
on Jul 05, 2011 at 06:23 UTC ( #912758=note: print w/ replies, xml ) Need Help??


in reply to Count pages of PDF file

We can do like this..

use PDF::API2;
foreach $doc (@ARGV)
{
$pdf = PDF::API2->open($doc);
$pages = $pdf->pages;
$totalpages += $pages;
print "$doc contains $pages pages\n";
}
print "Total pages of pdf pages = $totalpages\n";


Comment on Re: Count pages of PDF file

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2014-12-29 07:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (185 votes), past polls