My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 6: assert isinstance(colorspace, str)
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  pts...@gmail.com
Closed:  Oct 2009


 
Reported by roc...@gmail.com, Oct 28, 2009
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
Please sync to r95 (svn update), and try again. If it still doesn't work, please
attach aa.pdf.
Oct 28, 2009
#2 roc...@gmail.com
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
#3 roc...@gmail.com
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
Project Member #4 pts...@gmail.com
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

Powered by Google Project Hosting