sudharakab / pdfsizeopt

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

assert isinstance(colorspace, str) #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by roc...@gmail.com on 28 Oct 2009 at 9:31

GoogleCodeExporter commented 8 years ago
Please sync to r95 (svn update), and try again. If it still doesn't work, please
attach aa.pdf.

Original comment by pts...@gmail.com on 28 Oct 2009 at 8:10

GoogleCodeExporter commented 8 years ago
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!

Original comment by roc...@gmail.com on 28 Oct 2009 at 11:31

GoogleCodeExporter commented 8 years ago
btw, I have write an article to introduce pdfsizeopt,
http://blog.rubypdf.com/2009/10/30/pdfsizeopt-a-free-and-open-source-pdf-manipul
ation-tool-to-reduce-pdf-file-size/
and I am prepare release a windows version solution.

Original comment by roc...@gmail.com on 29 Oct 2009 at 5:24

GoogleCodeExporter commented 8 years ago
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.

Original comment by pts...@gmail.com on 31 Oct 2009 at 9:49