Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Getting details from pdf files..

by prasadbabu (Prior)
on Oct 05, 2006 at 10:15 UTC ( [id://576498]=note: print w/replies, xml ) Need Help??


in reply to Getting details from pdf files..

To get the total number of pages, you can use CAM::PDF. PDF can also be used for finding version and pages, $pdf->Version, $pdf->Pages.

use CAM::PDF; my $filename = $ARGV[0]; #get the filename from the user my $pdf=PDF->new("$filename"); my $self = CAM::PDF->new("$filename"); #total no of pages my $pages = $self->numPages(); print "\n\nTotal number of pages: $pages\n\n"; untested:

Prasad

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-20 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found