Closed GoogleCodeExporter closed 9 years ago
This works for me on Linux. There is no Win32 version of pdfsizeopt.py!
> info: This is pdfsizeopt.py rUNKNOWN.
Next time, please svn checkout pdfsizeopt.py, so it will report the proper
revision
number instead of rUNKNOWN.
These lines look strange in your output:
=> new length = 14042, saved 1%, elapsed time = 0 sec
info: Multivalent generated pso.conv.mi.tmp-o.pdf of 421 bytes (3%)
In my output on Linux:
=> new length = 14041, saved 1%, elapsed time = 0 sec
info: Multivalent generated pso.conv.mi.tmp-o.pdf of 14063 bytes (99%)
Why is it so that on Windows pdfsizeopt.py reads only 421 bytes of the 14042
bytes
generated by Multivalent? This is for you to figure out. Maybe you have to use
open(filename, 'rb') instead open(filename)? If you find out, please let me
know.
Original comment by pts...@gmail.com
on 31 Oct 2009 at 7:34
yes, in windows, need open(filename,'rb'), it is a bug of windows.
it works on my Linux environment.
Original comment by roc...@gmail.com
on 1 Nov 2009 at 6:52
Although there is still no official port of pdfsizeopt to Win32, in r148 I made
it a bit easier to use pdfsizeopt on Windows: now it opens every file and pipe
in binary mode.
Feel free to volunteer to write a Windows port. Maybe the post complicated part
would be making Ghostscript invocations work with os.popen.
Original comment by pts...@gmail.com
on 10 Feb 2011 at 10:44
Original issue reported on code.google.com by
roc...@gmail.com
on 31 Oct 2009 at 6:37Attachments: