in reply to Parsing PDF header (footer)
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 |