Subject: | Freed xref entries do not form linked list |
I took a huge PDF file and extracted a single page from it with CAM::PDF. The resulting PDF had a cross-reference table beginning like this:
xref
0 1943
0000000000 65535 f
0000000002 00001 f
0000000003 00001 f
0000000004 00001 f
0000000005 00001 f
0000000006 00001 f
0000000007 00001 f
According to the specification, all of the freed entries, including 0, form a linked list, so object 0 should point to object 1, like this:
xref
0 1943
0000000001 65535 f
0000000002 00001 f
...