On 11-apr-2007, at 14:35, Chris Dolan via RT wrote:
Show quoted text>
> <URL:
http://rt.cpan.org/Ticket/Display.html?id=26216 >
>
> On Apr 11, 2007, at 2:29 AM, Johan Henselmans via RT wrote:
>
>> Thanks for the reply.
>>
>>
>> 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.
>
> Chris
>
> --
> Chris Dolan, Equilibrious LLC,
http://equilibrious.net/
> Public key:
http://chrisdolan.net/public.key
> vCard:
http://chrisdolan.net/ChrisDolan.vcf
>
>
>
>
Chris, just for you info: I reported the bug to Apple (5127826).
I also tried what you said, and set the line:
0 18
0000000000 00000 n
0000000281 00000 n
0000000022 00000 n
to:
0 18
0000000000 00000 f
0000000281 00000 n
0000000022 00000 n
That nearly worked. I could run:
changepagestring.pl bovenRTF.pdf 'Onder' 'Door' dak.pdf,
but unfortunately, It did replace 'Onder' with 'oor', instead of 'Door'.
Thanks for the effort.
Regards,
Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6273852