Skip Menu |

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

Report information
The Basics
Id: 26596
Status: resolved
Priority: 0/
Queue: CAM-PDF

People
Owner: Nobody in particular
Requestors: johan [...] netsense.nl
Cc:
AdminCc:

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



Subject: Fwd: Bug ID 5127826:PDF file from save as PDF print sheet is corrupt says CAM::PDF developer
Date: Tue, 24 Apr 2007 09:09:45 +0200
To: Chris Dolan via RT <bug-CAM-PDF [...] rt.cpan.org>
From: Johan Henselmans <johan [...] netsense.nl>
Chris, I just got a message from Apple. They are adamant that it is a bug in CAM::PDF. Begin forwarded message: Show quoted text
> From: devbugs@apple.com > Date: 24 april 2007 1:42:20 GMT+02:00 > To: johan@netsense.nl > Subject: Bug ID 5127826:PDF file from save as PDF print sheet is > corrupt says CAM::PDF developer > > Hello, > > This is a follow-up to Bug ID# 5127826. We have received the > following update regarding this bug: > > Engineering has determined that this issue originates with CAM::PDF > creating incorrect PDFs. Please feel free to contact the developer > regarding this issue to help alert them of its importance. > > We have closed this report as resolved. Thank you for taking the > time to notify us of this issue. > > Best Regards, > > Jeff Lemas > Apple Developer Connection > Worldwide Developer Relations > -------------------------------- > WWDC 2007 • June 11-15 • Moscone West • San Francisco, CA > http://developer.apple.com/wwdc/ > > ********************************************************************** > ***************************************** > THE INFORMATION CONTAINED IN THIS MESSAGE IS UNDER NON-DISCLOSURE > ********************************************************************** > **************************************** > ------------------------------------------------------- > Bug ID #: 5127826 > Bug Title: PDF file from save as PDF print sheet is corrupt says > CAM::PDF developer > ------------------------------------------------------- > <GMT11-Apr-2007 20:08:24GMT> J Henselmans: > Summary: > > There is a perl module, called CAM::PDF, which makes it possible to > read and manipulate PDF files in perl. > > I tried this modules as it is a way for me to change PDF files on > different systems. When I tried to change a PDF file produced by > Save as PDF Print Dialog from a TextEdit file, I got the error > message: > > ppp5:/Users/johan/Desktop root# changepagestring.pl boven.rtf.pdf > 'Onder' 'Door' dak.pdf > Expected object open tag > 0 %PDF-1.3 > %????????? > 2 0 ob > > According to the developer, that was caused by an error in de PDF > production of the OS: > > " > I've reproduced this problem by opening the RTF in TextEdit and > printing > to PDF under 10.4.9. The problem is that resulting PDF is corrupt > -- it > wrongly claims that data starts at byte zero, when in fact the data > starts at byte 22. > > I see that the PDF opens in both Acrobat and Preview. Those two > applications must be more tolerant of corrupt PDFs than my library > is... > " > Steps to Reproduce: > -Install CAM::PDF via cpan. > -Use enclosed file with command above: "changepagestring.pl > boven.rtf.pdf 'Onder' 'Door' dak.pdf" > > Expected Results: > a changed pdf. > > Actual Results: > the error message above > > Regression: > See message of developer of CAM::PDF > > Notes: > After some discussion I asked if there was a workaround. > > "I'll report the bug to Apple. Is there any way that I can fix the > PDF's manually (while waiting for the Apple fix), say by > automatically replacing the starting position somewhere in the PDF? > > I was about to say no, but perhaps yes. I haven't tried this: Try > opening the PDF in a binary-friendly text editor (like emacs) and go > to the end of the doc. Find the line that says "000000000 n" and > change the "n" to an "f". If I've said that correctly, that should > change the corrupt element pointing at byte zero to "unused". But > then, it's been several years since I looked at the PDF spec for the > document index so I could be remembering incorrectly. > " > That did not help... > > > > 'boven.rtf.pdf' and 'diomedea.spx'were successfully uploaded > >
Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6273852
Subject: Re: [rt.cpan.org #26596] Fwd: Bug ID 5127826:PDF file from save as PDF print sheet is corrupt says CAM::PDF developer
Date: Tue, 24 Apr 2007 06:59:19 -0500
To: bug-CAM-PDF [...] rt.cpan.org
From: Chris Dolan <chris [...] equilibrious.net>
The Apple guy either made a typo or is just wrong. When I reproduced the problem, CAM::PDF did not *create* the PDF in question. I created the PDF by printing to PDF from Preview.app. Then, CAM::PDF could not read the PDF because the PDF is corrupt. When the Apple representative says "this issue originates with CAM::PDF creating incorrect PDFs" he is just wrong because CAM::PDF did not create the PDF. Chris On Apr 24, 2007, at 2:10 AM, Johan Henselmans via RT wrote: Show quoted text
> > Tue Apr 24 03:10:24 2007: Request 26596 was acted upon. > Transaction: Ticket created by johanhenselmans > Queue: CAM-PDF > Subject: Fwd: Bug ID 5127826:PDF file from save as PDF print > sheet is corrupt says CAM::PDF developer > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: johan@netsense.nl > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=26596 > > > > Chris, I just got a message from Apple. They are adamant that it is a > bug in CAM::PDF. > > Begin forwarded message: >
>> From: devbugs@apple.com >> Date: 24 april 2007 1:42:20 GMT+02:00 >> To: johan@netsense.nl >> Subject: Bug ID 5127826:PDF file from save as PDF print sheet is >> corrupt says CAM::PDF developer >> >> Hello, >> >> This is a follow-up to Bug ID# 5127826. We have received the >> following update regarding this bug: >> >> Engineering has determined that this issue originates with CAM::PDF >> creating incorrect PDFs. Please feel free to contact the developer >> regarding this issue to help alert them of its importance. >> >> We have closed this report as resolved. Thank you for taking the >> time to notify us of this issue. >> >> Best Regards, >> >> Jeff Lemas >> Apple Developer Connection >> Worldwide Developer Relations >> -------------------------------- >> WWDC 2007 • June 11-15 • Moscone West • San Francisco, CA >> http://developer.apple.com/wwdc/ >> >> ********************************************************************* >> * >> ***************************************** >> THE INFORMATION CONTAINED IN THIS MESSAGE IS UNDER NON-DISCLOSURE >> ********************************************************************* >> * >> **************************************** >> ------------------------------------------------------- >> Bug ID #: 5127826 >> Bug Title: PDF file from save as PDF print sheet is corrupt says >> CAM::PDF developer >> ------------------------------------------------------- >> <GMT11-Apr-2007 20:08:24GMT> J Henselmans: >> Summary: >> >> There is a perl module, called CAM::PDF, which makes it possible to >> read and manipulate PDF files in perl. >> >> I tried this modules as it is a way for me to change PDF files on >> different systems. When I tried to change a PDF file produced by >> Save as PDF Print Dialog from a TextEdit file, I got the error >> message: >> >> ppp5:/Users/johan/Desktop root# changepagestring.pl boven.rtf.pdf >> 'Onder' 'Door' dak.pdf >> Expected object open tag >> 0 %PDF-1.3 >> %????????? >> 2 0 ob >> >> According to the developer, that was caused by an error in de PDF >> production of the OS: >> >> " >> I've reproduced this problem by opening the RTF in TextEdit and >> printing >> to PDF under 10.4.9. The problem is that resulting PDF is corrupt >> -- it >> wrongly claims that data starts at byte zero, when in fact the data >> starts at byte 22. >> >> I see that the PDF opens in both Acrobat and Preview. Those two >> applications must be more tolerant of corrupt PDFs than my library >> is... >> " >> Steps to Reproduce: >> -Install CAM::PDF via cpan. >> -Use enclosed file with command above: "changepagestring.pl >> boven.rtf.pdf 'Onder' 'Door' dak.pdf" >> >> Expected Results: >> a changed pdf. >> >> Actual Results: >> the error message above >> >> Regression: >> See message of developer of CAM::PDF >> >> Notes: >> After some discussion I asked if there was a workaround. >> >> "I'll report the bug to Apple. Is there any way that I can fix the >> PDF's manually (while waiting for the Apple fix), say by >> automatically replacing the starting position somewhere in the PDF? >> >> I was about to say no, but perhaps yes. I haven't tried this: Try >> opening the PDF in a binary-friendly text editor (like emacs) and go >> to the end of the doc. Find the line that says "000000000 n" and >> change the "n" to an "f". If I've said that correctly, that should >> change the corrupt element pointing at byte zero to "unused". But >> then, it's been several years since I looked at the PDF spec for the >> document index so I could be remembering incorrectly. >> " >> That did not help... >> >> >> >> 'boven.rtf.pdf' and 'diomedea.spx'were successfully uploaded >> >>
> > Regards, > > Johan Henselmans > http://www.netsense.nl > Tel: +31-20-6267538 > Fax: +31-20-6273852 > > >
-- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf
I still say Apple is at fault, so I'm going to close this bug.