Skip Menu |

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

Report information
The Basics
Id: 32812
Status: resolved
Worked: 10 min
Priority: 0/
Queue: PDF-Create

People
Owner: MARKUSB [...] cpan.org
Requestors: TBarbera [...] sbli.com
Cc:
AdminCc:

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



Subject: Error during pdf creation
Date: Wed, 30 Jan 2008 15:10:06 -0500
To: <bug-PDF-Create [...] rt.cpan.org>
From: Todd Barbera <TBarbera [...] sbli.com>
Hi, I have PDF::Create installed on Solaris 9 with Perl 5.8.8. On one server, I have an older version of PDF::Create (0.01) and we have no problems. On another server running the same OS and Perl version, I had PDF::Create 0.08 installed. After creating a 4M PDF using the newer version, we were finding that part of the data was corrupt. The document would be fine until page 261 and we would get the Acrobat Reader error: There was a problem reading this document (114). The data was bad through page 276 and then the rest of the document was fine. We are using "ascii2pdf" to create the document. Todd Barbera -------------------------------------------------------------------------- This message contains information which may be confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received the message in error, please advise the sender by reply e-mail, and delete or destroy the message.
Sorry for the late reply. I was not really aware of this site... However, unfortunately your description is too vague, for me to be able to look into it. While I have updated PDF:: Create I don't think newer versions would be better. V0.01 is very old though. Markus
Subject: RE: [rt.cpan.org #32812] Error during pdf creation
Date: Tue, 3 Jun 2008 08:00:28 -0400
To: "bug-PDF-Create [...] rt.cpan.org" <bug-PDF-Create [...] rt.cpan.org>
From: Todd Barbera <TBarbera [...] sbli.com>
Hi Markus, I'm not sure what other information I can supply. Most of the pages got created fine, but then there was a section that didn't get successfully created. I'm not sure if there might have been a buffer overrun since the document was relatively large (4m), but after having 16 corrupt pages, the rest of the document was fine. Todd Show quoted text
-----Original Message----- From: Markus Baertschi via RT [mailto:bug-PDF-Create@rt.cpan.org] Sent: Tuesday, June 03, 2008 7:17 AM To: Todd Barbera Subject: [rt.cpan.org #32812] Error during pdf creation <URL: http://rt.cpan.org/Ticket/Display.html?id=32812 > Sorry for the late reply. I was not really aware of this site... However, unfortunately your description is too vague, for me to be able to look into it. While I have updated PDF:: Create I don't think newer versions would be better. V0.01 is very old though. Markus -------------------------------------------------------------------------- This message contains information which may be confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received the message in error, please advise the sender by reply e-mail, and delete or destroy the message.
On Tue Jun 03 07:59:09 2008, TBarbera@sbli.com wrote: Show quoted text
> Hi Markus, > > I'm not sure what other information I can supply. Most of the pages > got created fine, but then there was a section that didn't get > successfully created. I'm not sure if there might have been a > buffer overrun since the document was relatively large (4m), but > after having 16 corrupt pages, the rest of the document was fine. > > Todd
Hi Todd, Your problem is quite bizarre. But without test case I don't know how start fixing it. One thing: PDF create assembles the content of the PDF in a big hash and only creates the PDF data stream when you call 'pdf->close();'. While running out of memory is possible, but I doubt you'd have a problem only in the middle of the PDF. Did you try with a newer version ? Markus
Subject: RE: [rt.cpan.org #32812] Error during pdf creation
Date: Thu, 26 Jun 2008 13:02:21 -0400
To: "bug-PDF-Create [...] rt.cpan.org" <bug-PDF-Create [...] rt.cpan.org>
From: Todd Barbera <TBarbera [...] sbli.com>
Hi Markus, I assume you mean the latest release of PDF::Create (1.01). No, I have not tested with that version. Could it be that the issue is with "acsii2pdf" and not with PDF::Create? Todd Show quoted text
-----Original Message----- From: Markus Baertschi via RT [mailto:bug-PDF-Create@rt.cpan.org] Sent: Thursday, June 26, 2008 12:49 PM To: Todd Barbera Subject: [rt.cpan.org #32812] Error during pdf creation <URL: http://rt.cpan.org/Ticket/Display.html?id=32812 > On Tue Jun 03 07:59:09 2008, TBarbera@sbli.com wrote:
> Hi Markus, > > I'm not sure what other information I can supply. Most of the pages > got created fine, but then there was a section that didn't get > successfully created. I'm not sure if there might have been a > buffer overrun since the document was relatively large (4m), but > after having 16 corrupt pages, the rest of the document was fine. > > Todd
Hi Todd, Your problem is quite bizarre. But without test case I don't know how start fixing it. One thing: PDF create assembles the content of the PDF in a big hash and only creates the PDF data stream when you call 'pdf->close();'. While running out of memory is possible, but I doubt you'd have a problem only in the middle of the PDF. Did you try with a newer version ? Markus -------------------------------------------------------------------------- This message contains information which may be confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received the message in error, please advise the sender by reply e-mail, and delete or destroy the message.
On Thu Jun 26 13:02:31 2008, TBarbera@sbli.com wrote: Show quoted text
> Hi Markus, > > I assume you mean the latest release of PDF::Create (1.01). No, I have > not tested with that version. Could it be that the issue is with > "acsii2pdf" and not with PDF::Create?
Yes it could well be that there is a problem with ascii2pdf. Try it with PDF::Create 1.01 as well. There is a bug in PDF::Create 0.01 where it does not escape parens correctly. This is fixed in more recent versions, but old applications might have private fixes who need to be removed to work with newer PDF::Create versions. Markus
Recent versions of PDF::Create seem to resolve the problem.