Issue 4: assert isinstance(colorspace, str)
Status:  Fixed
Owner:
Closed:  Oct 2009
Reported by lev.bishop, Oct 27, 2009
(Please select a label starting with Optimize- in ``Labels:'' below, and
remove this paragraph.)

What command do you run to optimize the PDF?
user@ubuntu804server:~/pdfsizeopt$ ./pdfsizeopt.py --use-pngout=false
--use-multivalent=false --use-jbig2=false vrabimintest.pdf

What does pdfsizeopt display when running the command above?
info: This is pdfsizeopt.py r92.
info: loading PDF from: vrabimintest.pdf
info: loaded PDF of 17239 bytes
info: separated to 42 objs
info: found 0 Type1 fonts loaded
info: found 0 Type1C fonts loaded
Traceback (most recent call last):
  File "./pdfsizeopt.py", line 6015, in ?
    main(sys.argv)
  File "./pdfsizeopt.py", line 6005, in main
    pdf.OptimizeImages(use_pngout=use_pngout, use_jbig2=use_jbig2)
  File "./pdfsizeopt.py", line 4736, in OptimizeImages
    assert isinstance(colorspace, str)
AssertionError

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

vrabimintest.pdf
16.8 KB   Download
Oct 28, 2009
Project Member #1 pts...@gmail.com
Fixed in r95. Thank you for reporting this bug.
Status: Fixed
Oct 31, 2009
#2 lev.bishop
Confirm fixed.