Planet PDF Forum Archive

Planet PDF ForumThis is from our 160,000 page PDF discussion forum archive one & two spanning 1999-2011. Use the filters on our Advanced Search page to search archive only. Head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions.


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.

PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist 11

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Two Passwords Are Better Than One: The Low-Down On PDF Security

For people who don't spend their time looking at PDF files in text editors*, PDF security is a sometimes misunderstood beast.

For example, those document restrictions that PDF files sometimes have -- no Printing, Content Copying, Page Extraction, etc -- are essentially useless unless the PDF also has a User Password.

January 09, 2014
Platinum Sponsor



Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist 11

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.