dwings / pdfsizeopt

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

assert isinstance(colorspace, str) #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(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.

Original issue reported on code.google.com by lev.bishop on 28 Oct 2009 at 1:05

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r95. Thank you for reporting this bug.

Original comment by pts...@gmail.com on 28 Oct 2009 at 8:05

GoogleCodeExporter commented 9 years ago
Confirm fixed.

Original comment by lev.bishop on 31 Oct 2009 at 8:00