Subject: | Parse error for linearized PDF |
Hi,
I have a number of linearized PDFs (PDF version is 1.3) that
cannot be parsed by CAM::PDF. An example is available here:
<http://devel.springer.de/example.pdf>
Code to reproduce the error:
use CAM::PDF;
my $PDFfile = CAM::PDF->new('example.pdf');
The error reported is:
substr outside of string at .../site/lib/CAM/PDF.pm line 716.
Use of uninitialized value $content[11] in join or string at .../site/
lib/CAM/PDF.pm line 718.
Expected object open tag
0 xref^M0 528^M0000000000 65535 f^M
00001134...
The PDF file was originally created by Adobe InDesign CS2
and then linearized by Enfocus PitStop Server 08 Update 3.
The error does not occur with the unlinearized PDF.
More information that might be of relevance:
CAM::PDF version: 1.52
Perl version: 5.10.0
OS: Windows XP
Thanks,
Matthias