Issue 70: Bug in boolean parameter handling
Status:  Fixed
Owner: ----
Closed:  Aug 2012
Reported by garbage-collection@gmx.net, Aug 24, 2012
Hi,

I just updated pdfsizeopt to the latest revision (r214) and ran it on a Debian 6.0 Squeeze system which comes with Python v2.6.6.  Unfortunately there is some error:

$ python pdfsizeopt.py --use-multivalent=false foobar.pdf
info: This is pdfsizeopt r214 size=210042.
Traceback (most recent call last):
  File "pdfsizeopt.py", line 7831, in <module>
    main(sys.argv)
  File "pdfsizeopt.py", line 7788, in main
    print >>sys.stderr, 'info: using Java for Multivalent: ' + multivalent_java
TypeError: cannot concatenate 'str' and 'bool' objects

Can you please take a look onto this.

Thanks a lot.
Mathias

Aug 25, 2012
Project Member #1 pts...@gmail.com
Thanks for the quick and detailed bug report. I could fix it in r215 based on the information provided. Please download the latest pdfsizeopt.py and retry.
Status: Fixed