Samy_rio has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks, I need to find the blank pages in PDF. I did super search, but I didn't got any links about this.
I tried in CAM::PDF, in the given pdf file the page is blank but it may contain header information in each page. That is,
03371 _ FM _ i -xv i .qx d 6/28/06 7 : 31 PM P age i
The following code is not displaying blank pages.
use CAM::PDF; my $doc = CAM::PDF->new($ARGV[0]) || die "$CAM::PDF::errstr\n"; my $pages = $doc->numPages(); print $pages; for (1..$pages) { print $_ if ($doc->getPageText($_) eq ''); }
Please suggest me how to find the blank page in PDF?
Regards,
Velusamy R.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Find blank pages in PDF
by marto (Cardinal) on Jul 04, 2006 at 13:04 UTC | |
|
Re: Find blank pages in PDF
by starbolin (Hermit) on Jul 07, 2006 at 04:35 UTC |