in reply to Editing/Replacing Text in a PDF
You'll want the PDF Reference (published by Adobe) to understand this better, but look at the xref table in the output file. It looks like this:
You'll want to know which objects you are modifying so you can correct all the objects with higher offset values. An object starts with a section like this:xref 69 16 0000000016 00000 n 0000001041 00000 n 0000000616 00000 n 0000001121 00000 n 0000001250 00000 n 0000001381 00000 n 0000001533 00000 n 0000001567 00000 n 0000001782 00000 n 0000001858 00000 n 0000002238 00000 n 0000002609 00000 n 0000002830 00000 n 0000003269 00000 n 0000003514 00000 n 0000006183 00000 n
This is the 71st object (note that the xref table I copied started its numbering at 69, for some reason), 0th revision. It starts after 616 bytes, which you can see in the xref table above.71 0 obj
At a minimum, if all else goes well, you will have to correct the byte offstes of the objects that appear after your changes, so that the viewer can "find" them.
If you're looking for an easy fix, this won't help. If you're willing to invest some time learning a really cool file format, jump on in!
P.S. (Pun kinda intended) There may be more than one xref table. For your purposes, update all of them with offsets greater than your byte location until you know why you don't have to... :-)