Skip Menu |

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

Report information
The Basics
Id: 26738
Status: rejected
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: Your Attention Needed
Date: Fri, 27 Apr 2007 09:40:47 +0200
To: Chris Dolan via RT <bug-CAM-PDF [...] rt.cpan.org>
From: Johan Henselmans <johan [...] netsense.nl>
Chris, this is what I got from Apple after the response I sent to them regarding their previous answer. Begin forwarded message: Show quoted text
> From: Apple Developer Bug Reporting <devbugs@apple.com> > Date: 27 april 2007 1:56:56 GMT+02:00 > To: johan@netsense.nl > Subject: Bug ID 5127826: Your Attention Needed > > Hi J, > > This is a follow-up to Bug ID# 5127826. > > Engineering has determined that this issue behaves as intended > based on the following information: > > The tool isn't handling valid PDFs correctly. The PDF doesn't > claim the data starts at byte 0. It's true that the first object > in the file starts at byte 22, but that's completely legal. > > We recommend you review the PDF specification, particularly section > 3.4.1 "File Header". > > We have closed this report as resolved. Thank you for taking the > time to notify us of this issue. > > Best Regards, > > Sabrina C. Fullhart > 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
I still say Apple is at fault, so I'm going to close this bug.