fsiler / pdfsizeopt

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

spaces in the input.pdf filename on Windows #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Expected invocation:

pdfsizeopt_python pdfsizeopt.py "my input.pdf"

Add support for spaces in the input.pdf filename on Windows. sys.argv seems to 
be useless, quotes are already removed and args not joined. Get the real data 
from:

>>> import win32api
>>> win32api.GetCommandLine ()
'python -i'

Original issue reported on code.google.com by pts...@gmail.com on 2 Jul 2012 at 5:24