Issue 14: AssertionError
Status:  Fixed
Owner:
Closed:  Nov 2009
Reported by lev.bishop, Nov 14, 2009
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!
enc.pdf
72.2 KB   Download
Nov 15, 2009
Project Member #1 pts...@gmail.com
This issue was closed by revision r130.
Status: Fixed
Mergedinto: -
Nov 15, 2009
Project Member #2 pts...@gmail.com
Thanks for the bug report.

Fixed in r130.