Subject: | Garbage xref stream. |
Here are a cross-reference stream and trailer produced by PDF::Extract. Notice that neither of the objects referenced in the trailer (1892 0, 1894 0) is listed in the cross-reference table, which goes from 1 0 to 45 0. While Acrobat and Appleās PDF viewers can handle such a PDF (by ignoring the bogus cross-reference table), it is necessarily slower than it needs to be to read such a file, since finding any indirect object requires scanning from beginning to end. If fixing this is not feasible, you could save disk space by emitting the cross-reference table altogether. :-) (I tried removing all the numbers between xref and trailer and Acrobat still read it.)
xref
0 46
0000000000 65535 f
0000000016 00000 n
0000000153 00000 n
0000000214 00000 n
0000000285 00000 n
0000000430 00000 n
0000000693 00000 n
0000000826 00000 n
0000000850 00000 n
0000923744 00000 n
0000923772 00000 n
0000932548 00000 n
0000933480 00000 n
0000933724 00000 n
0000934335 00000 n
0000935259 00000 n
0000935512 00000 n
0000936123 00000 n
0000937055 00000 n
0000937303 00000 n
0000937914 00000 n
0000938776 00000 n
0000939020 00000 n
0000939631 00000 n
0000940486 00000 n
0000940730 00000 n
0000941337 00000 n
0000942168 00000 n
0000942418 00000 n
0000943025 00000 n
0000943918 00000 n
0000944157 00000 n
0000944764 00000 n
0000945543 00000 n
0000945795 00000 n
0000946398 00000 n
0000947250 00000 n
0000947492 00000 n
0000948095 00000 n
0000948881 00000 n
0000949136 00000 n
0000949743 00000 n
0000950524 00000 n
0000950782 00000 n
0000951385 00000 n
0000952119 00000 n
0000952367 00000 n
trailer
<<
/Size 46
/Info 1892 0 R
/Root 1894 0 R
/ID[<07e3b8ab6a0372d4fdf1d23df0c6a196><07e3b8ab6a0372d4fdf1d23df0c6a196>]
Show quoted text
>>
startxref
952970
%%EOF