| Issue 6: | assert isinstance(colorspace, str) | |
| 1 person starred this issue and may be notified of changes. | Back to list |
If I opt the pdf create by pdftk
pdftk Seven.Steps.To.A.Successfull.Business.Plan.pdf output aa.pdf
and
python pdfsizeopt.py aa.pdf
I got the following error,
Type1CGenerator: all OK
info: loading PDF from: pso.conv.gen.tmp.pdf
info: loaded PDF of 516894 bytes
info: separated to 727 objs
info: found 179 fonts loaded
info: optimized Type1C fonts to size 436411 (73%)
Traceback (most recent call last):
File "pdfsizeopt.py", line 6002, in ?
main(sys.argv)
File "pdfsizeopt.py", line 5992, in main
pdf.OptimizeImages(use_pngout=use_pngout, use_jbig2=use_jbig2)
File "pdfsizeopt.py", line 4723, in OptimizeImages
assert isinstance(colorspace, str)
AssertionError
btw, if needed, I will upload the aa.pdf
http://pdfsizeopt.googlecode.com/issues/attachment?aid=-723712704971559276&name=Seven.Steps.To.A.Successfull.Business.Plan.pdf
Oct 28, 2009
Project Member
#1
pts...@gmail.com
Oct 28, 2009
it works under Linux(Linux robin 2.6.29.6-aufs2-grsec-v1.5-x86_64-xeon #13 SMP Mon Oct 5 11:13:18 PDT 2009 x86_64 GNU/Linux)+Python 2.4.4+GPL Ghostscript 8.54 The original PDF is 5.6M, and the opted PDF is 4.4M, great!
Oct 29, 2009
btw, I have write an article to introduce pdfsizeopt, http://blog.rubypdf.com/2009/10/30/pdfsizeopt-a-free-and-open-source-pdf-manipulation-tool-to-reduce-pdf-file-size/ and I am prepare release a windows version solution.
Oct 31, 2009
Thank you for writing your article on your blog. Please keep me updated with the windows version. I'd like to integrate your changes which make pdfsizeopt.py work on Windows.
Status:
Fixed
|