SK-Yang / peepdf

Automatically exported from code.google.com/p/peepdf
GNU General Public License v3.0
0 stars 0 forks source link

Additional cross-reference entry when create new PDF file #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Run "./peepdf.py -i"
2. Run "create pdf" in peepdf console
3. Run "save 'test.pdf'" in peepdf console

What is the expected output? What do you see instead?

The following content is the cross-reference table and trailer of test.pdf. The 
size of cross-reference table is 4, however, there are 5 entries in table. 
There is a useless entry in cross-reference table which does not point to an 
object.

xref
0 4
0000000000 65535 f 
0000000009 00000 n 
0000000059 00000 n 
0000000118 00000 n 
0000000119 00000 n 
trailer
<< /Size 4
/Root 1 0 R >>
startxref
210
%%EOF

What version of the product are you using? On what operating system?

The version of peepdf is r42. The operating system is ubuntu-11.10 x86_64.

Please provide any additional information below.

Original issue reported on code.google.com by czchen on 24 Oct 2011 at 11:50

GoogleCodeExporter commented 9 years ago
Hi! Thanks for the issue! This is a silly bug that really does not affect to 
the parsing process by a PDF reader. This is because they tend to ignore the 
xref table...Fixed now, thanks!

Original comment by josemigu...@gmail.com on 25 Oct 2011 at 8:55