hefronmedia / pdfsizeopt

Automatically exported from code.google.com/p/pdfsizeopt
0 stars 0 forks source link

AssertionError: duplicate obj trailer #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What command do you run to optimize the PDF?

What does pdfsizeopt display when running the command above?
user@ubuntu804server:~/manypdfs/fail2$ ~/pdfsizeopt/pdfsizeopt.py --use-
pngout=false --use-multivalent=true ../fail/pst-docfull.pdf kl.pdf
info: This is pdfsizeopt.py r132.
info: loading PDF from: ../fail/pst-docfull.pdf
info: loaded PDF of 565330 bytes
warning: problem with xref table, finding objs anyway: duplicate obj 285
Traceback (most recent call last):
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 6141, in ?
    main(sys.argv)
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 6115, in main
    pdf = PdfData(
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 2992, in Load
    obj_starts, self.has_generational_objs = self.ParseWithoutXref(
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 3183, in 
ParseWithoutXref
    assert prev_obj_num not in obj_starts, 'duplicate obj ' + prev_obj_num
AssertionError: duplicate obj trailer

What's wrong with the optimized PDF?
There isn't one!

Original issue reported on code.google.com by lev.bishop on 17 Nov 2009 at 5:22

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r134, by the same bugfix what fixed issue 22.

Original comment by pts...@gmail.com on 29 Nov 2009 at 11:53