Since I couldn't find a library that could do what I needed to do (modification of one object and rebuilding all the indexes) I've decided to write my own little library to do that. Fortunately the PDFs I need to modify are small, adhere to an older PDF format, and are consistent (so far).
I've encountered a couple of things that are not addressed in the specification, if anyone can help me with these, it would be greatly appreciated.
* Trailer contains "/XRefs" tag. I could not find any reference to such tag in either the 1.5 or 1.3 specification. What is this exactly? It points to an object that contains a list of numbers "/XRef [ [ ... ] [ ... ] [ ... ] ]" that I am not sure what they mean or do. If I delete this object and its reference in the trailer, the PDF still opens fine (after a rebuild), so I don't think I need it, but I'd like to make sure of that, and know what it is/was used for.
* I could not find the type "Dictionary" defined in the spec. I'm sure it's there somewhere but I couldn't find it among the hundreds of matches. I'd deduced that in the format "# # R" the first number is the object number, but I do not know the significance of the second number or 'R'.
If anyone knows the answers to these that would be helpful. Thanks.
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
