Hi
I try to develop a PDF parser, but I'm stuck at Cross Reference Streams.
My program first reads all objects from a PDF document, and then saves it.
If the version is 1.5 or higher, the cross reference is in an object, which uses the FlateDecode filter and a Predictor of 12.
All seems to be good, but the PDF Reader cannot open the file.
When I save the file with a normal cross reference, the PDF works fine.
Can someone please help me find the problem in the following file:
The file above is the result of the following file:
With a normal cross reference table, it results in this file (works):
Note that the difference between file 1 and file 3 is only at the end, where the tailer or the XRef object is located.
I've checked the cross reference table again and again, but I couldn't find the error.
Thanks you so much for your help!