sudharakab / pdfsizeopt

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

Space in Path triggers error #66

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. OS: Windows 7, installation of pdfsizeopt in C:\Program Files 
(x86)\pdfsizeopt\
2. Run pdfsizeopt.py without any options

What is the expected output? What do you see instead?

Output: 
=====================
Running `pdfsizeopt' on `120725-myfile-3-Punkte' with ``pdfsizeopt.py 
"120725-myfile-3-Punkte".pdf "120725-myfile-3-Punkte".pdf''
Type1CParser: using interpreter GPL Ghostscript 905 20120208
Type1CParser: all OK
info: This is pdfsizeopt.py rUNKNOWN size=313571.
info: loading PDF from: 120725-myfile-3-Punkte.pdf
info: loaded PDF of 48065 bytes
info: found 54 obj offsets and 1 obj streams in xref stream
info: separated to 52 objs + xref + trailer
info: found 0 Type1 fonts loaded
info: found 6 Type1C fonts loaded
info: writing Type1CParser (23253 font bytes) to: pso.conv.parse.tmp.ps
info: using Ghostscript gswin32c: GPL Ghostscript 9.05 (2012-02-08)
info: executing Type1CParser with Ghostscript: gswin32c -q -dNOPAUSE -dBATCH 
-sDEVICE=nullpage -sDataFile=pso.conv.parsedata.tmp.ps -f pso.conv.parse.tmp.ps
info: parsed 6 Type1C fonts
info: saving PDF with 52 objs with Multivalent to: 120725-myfile-3-Punkte.pdf
info: writing Multivalent input PDF: pso.conv.mi.tmp.pdf
info: generated object stream of 3108 bytes in 42 objects (18%)
info: written 48065 bytes to Multivalent input PDF: pso.conv.mi.tmp.pdf
Traceback (most recent call last):
  File "C:\Program Files (x86)\pdfsizeopt\pdfsizeopt.py", line 7791, in <module>
    main(sys.argv)
  File "C:\Program Files (x86)\pdfsizeopt\pdfsizeopt.py", line 7784, in main
    is_flate_ok=not do_decompress_flate)
  File "C:\Program Files (x86)\pdfsizeopt\pdfsizeopt.py", line 7507, in Save
    may_obj_heads_contain_comments=may_obj_heads_contain_comments)
  File "C:\Program Files (x86)\pdfsizeopt\pdfsizeopt.py", line 7415, in _RunMultivalent
    ShellQuoteFileName(multivalent_jar))
  File "C:\Program Files (x86)\pdfsizeopt\pdfsizeopt.py", line 158, in ShellQuoteFileName
    'Unexpected space in filename argument: %r' % string)
AssertionError: Unexpected space in filename argument: 'C:\\Program Files 
(x86)\\pdfsizeopt\\Multivalent20060102.jar'

pdfsizeopt exited abnormally with code 1 at Sat Jul 28 13:05:07

=====================

What version of the product are you using? On what operating system?
pdfsizeopt.py: r205; OS: Windows 7, 64 bit

Please provide any additional information below.

Additional info: I'm in a hurry and offline for two weeks. Problem can be 
avoided by using "--use-multivalent=false".  

Original issue reported on code.google.com by cookie...@web.de on 28 Jul 2012 at 11:24