Previous | Next | (P-PDF) What's Wrong with my PDF?
Topic: Incremental update on PDF 1.5 xref stream?
Conf: (P-PDF) What's Wrong with my PDF?, Msg: 163699
From: boardhead
Date: 12/12/2007 12:51 PM
I am writing an application to update meta information in PDF images. It is working fine except for PDF files that use cross-reference streams entirely.
Here is my latest attempt at updating such a file, but something is wrong because the file is not readable by my PDF readers (sorry for the size of the PDF, but it's my only sample with an xref stream -- the incremental update part is attached below for convenience):
http://owl.phy.queensu.ca/~phil/test.pdf
Does anyone know what I am doing wrong? I can't find any examples of increment updates on cross-reference stream PDF's.
Any help would be appreciated.
TIA
- Phil
%-------- ExifTool incremental update --------
109198 0 obj
<<
/ModDate (D:20041114163850-08'00')
/CreationDate (D:20041114084116Z)
/Title (PDF Reference, version 1.6)
/Creator (FrameMaker 7.0)
/Subject (Adobe Portable Document Format \(PDF\))
/Producer (Acrobat Distiller 6.0.1 for Macintosh)
/Author (me)
>>
endobj
xref
0 1
0000000000 65535 f
109198 1
0009142155 00000 n
109200 1
0000015477 00000 n
trailer
<<
/Size 109993
/Root 109200 0 R
/ID [ <0b1f990718e2a92c0c112fbf08b233fb> ]
/Info 109198 0 R
/XRefStm 116
>>
startxref
9142425
%%EOF
P.S. I had originally used "/Prev 116" instead of "/XRefStm 116" the trailer dictionary to point to the previous xref stream, but this didn't work either. Also, I have tried defining more or less objects in my xref table (I even tried setting all other objects to free), but that didn't work either.