Skip Menu |

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

Report information
The Basics
Id: 22143
Status: resolved
Priority: 0/
Queue: PDF-API2

People
Owner: Nobody in particular
Requestors: aw [...] ice-sa.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Attachments


Subject: Problem in File.pm, trailer tag
Date: Tue, 17 Oct 2006 13:09:08 +0200
To: bug-PDF-API2 [...] rt.cpan.org
From: André Warnier <aw [...] ice-sa.com>
Dear Sirs, PDF::API2 version 0.53 module : lib/PDF/API2/Basic/PDF/File.pm $Id: File.pm,v 2.1 2006/06/15 20:15:48 areibens Exp $ Many thanks for your impressive module. We are using it intensively to process incoming documents automatically. The case reported below may not be a bug, as it is quite possible that the program creating such PDFs does not respect the specification. I have checked in the Adobe PDF 1.4 reference, and it is not clear to me wether the trailer tag *must* be followed by a CR. In any case, the attached file is one of many that we receive from a well-known supplier of on-line litterature, and it causes us a real problem because these PDFs are systematically rejected. Unfortunately, I don't feel confident enough to make a change in the File.pm module to work around the issue, and I have little hope that complaining to the document supplier would help. The attached PDF is rejected by the File.pm module, around line 1257 [...] if ($buf !~ /^trailer$cr/oi) { die "Malformed trailer in PDF file $self->{' fname'} at " . ($fh->tell - length($buf)); } [...] The reason seems to be that in the attached file, the "trailer" tag is not immediately followed by a CR, but looks like this : [...] trailer << /Info 1 0 R /Root 2 0 R /Size 15 Show quoted text
>>
[...] Thank you in advance and best regards, André Warnier Informatica Consulting Europa SL

Message body not shown because it is not plain text.

check latest release and report again if problem persists