Quantcast
Channel: Adobe Community : Popular Discussions - PDF Language and Specifications
Viewing all articles
Browse latest Browse all 46145

Cross Reference Stream Problem

$
0
0

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:

Download

 

The file above is the result of the following file:

Download

 

With a normal cross reference table, it results in this file (works):

Download

 

 

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!


Viewing all articles
Browse latest Browse all 46145

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>