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!