This queue is for tickets about the PDF-API2 CPAN distribution.

Report information
The Basics
Id:
30410
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
alfredreibenschuh [...] gmx.net
Requestors:
retti [...] eval1.i-med.ac.at
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: PDF::API2 - Problem reading in pdf file
Date: Thu, 01 Nov 2007 17:18:42 +0100
To: bug-PDF-API2@rt.cpan.org
From: Gregor Retti <retti@eval1.i-med.ac.at>
When trying to read a certain pdf file (attached) I got the following error: Malformed PDF file FileHandle=GLOB(0x90a8fcc) at /usr/lib/perl5/site_perl/5.8.4/PDF/API2/Basic/PDF/File.pm line 318. It looks like the end of the pdf should not be startxref 146169 %%EOF but rather startxref 146169 %%EOF The pdf is produced by a clipping software so I can not do much about that. When I added a space as an alternative to the check in File.pm it worked: 317c317 < if ($buf !~ m/startxref$cr\s*([0-9]+)$cr\%\%eof.*?/oi) ---
Show quoted text
> if ($buf !~ m/startxref$cr| \s*([0-9]+)$cr\%\%eof.*?/oi)
Not a very elegant solution, but it seems to work. -- Gregor Retti, Ph.D. Innsbruck Medical University EMail: retti@eval1.i-med.ac.at http://gregor.retti.info/

Message body not shown because it is not plain text.

fixed in cvs


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.