Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Parsing PDF header (footer)

by wind (Priest)
on Jun 09, 2011 at 20:30 UTC ( [id://909002]=note: print w/replies, xml ) Need Help??


in reply to Parsing PDF header (footer)

Try CAM::PDF.
use CAM::PDF; use strict; use warnings; my $filename = 'foo.pdf'; my $pdf = CAM::PDF->new($filename); for my $pagenum (1..$pdf->numPages()) { my $text = $pdf->getPageText(pagenum); if ($text =~ /looking for text/) { print "Found on $pagenum\n"; } }

Replies are listed 'Best First'.
Re^2: Parsing PDF header (footer)
by Anonymous Monk on Jun 10, 2011 at 15:11 UTC
    Thank you very much! Actually I must select according to the text in the header, not just the page nummer. But now I have a direction. Thanks again!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (8)
As of 2024-04-16 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found