Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, 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. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).

New Forum | Previous | Next | (P-PDF) Developers

Topic: Moving an object within a pdf
Conf: (P-PDF) Developers, Msg: 40944
From: nanodroid
Date: 5/24/2002 07:29 AM

Hello all

What is the best way to move an object within a pdf?

For the sake of 'simplicity' let's say I want to move the 8th object of a pdf to the end of of the pdf (before the new xref). What exactly do I do to the original xref table's 8th object entry? Nothing? Recalculate all of the byte-offsets in the original xref?

I know I must add an xref table at the end of the pdf to make sure the reader knows where the 8th object has moved to, but I am unsure of exactly what I must do.

I have read the examples in the Adobe PDF reference but it mainly covered annotations and ended up confusing me.

For example, let's say this is the original pdf's xref table:

...xref entries...
0000001234 00000 n <-- 8th object

Do I have to declare this as a free object? What do I have to do to this entry to make sure it doesn't break anything referencing the 8th object?

And here is what I'm assuming I have to add at the end of the pdf:

0 1
0000000000 65535 f
8 1
0000004321 00000 n <-- new location of 8th object
/Size 2
/Prev 2345 <-- location of the first xref
4567 <-- location of the new xref

Is this correct? (disregarding my bogus offsets, of course :)

Any help or comments would be greatly appreciated.


PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

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

Five visions of a PDF Day

In the world of PDFs or as we like to say Planet (of) PDF, a year isn't a real PDF year without an intense few days of industry knowledge sharing.

May 15, 2018
Platinum Sponsor

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

Debenu PDF Aerialist

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


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.