hefronmedia / pdfsizeopt

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

AssertionError #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What command do you run to optimize the PDF?
user@ubuntu804server:~/manypdfs/fail$ ~/pdfsizeopt/pdfsizeopt.py
--use-pngout=false --use-multivalent=true enc.pdf

What does pdfsizeopt display when running the command above?

info: This is pdfsizeopt.py r102.
info: loading PDF from: enc.pdf
info: loaded PDF of 73917 bytes
warning: problem with xref table, finding objs anyway: xref subsection
syntax error
Traceback (most recent call last):
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 6118, in ?
    main(sys.argv)
  File "/home/user/pdfsizeopt/pdfsizeopt.py", line 6092, 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 3187, in ParseWithoutXref
    assert prev_obj_num == 'trailer'
AssertionError

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

Original issue reported on code.google.com by lev.bishop on 15 Nov 2009 at 12:10

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r130.

Original comment by pts...@gmail.com on 15 Nov 2009 at 8:07

GoogleCodeExporter commented 9 years ago
Thanks for the bug report.

Fixed in r130.

Original comment by pts...@gmail.com on 15 Nov 2009 at 8:07