ourtown1 / pdfsizeopt

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

Can't find Ghostscript #95

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Labels: Optimize-Ghostscript

What command do you run to optimize the PDF?

./pdfsizeopt.py --use-pngout=no lme_v6.pdf

What does pdfsizeopt display when running the command above?

info: This is pdfsizeopt rUNKNOWN size=None.
info: using Java for Multivalent: /usr/bin/java
info: loading PDF from: lme_v6.pdf
info: loaded PDF of 2703119 bytes
info: separated to 1593 objs + xref + trailer
info: found 0 Type1 fonts loaded
info: found 114 Type1C fonts loaded
info: eliminated 12 duplicate /Type1C font data
info: writing Type1CParser (286490 font bytes) to: pso.conv.parse.tmp.ps
sh: gs: not found
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/var/ebs0/cpa/private/dj/pdfsizeopt.try/pdfsizeopt.py/mainrun.py", line 10, in <module>
  File "/var/ebs0/cpa/private/dj/pdfsizeopt.try/pdfsizeopt.py/pdfsizeopt/main.py", line 8057, in main
  File "/var/ebs0/cpa/private/dj/pdfsizeopt.try/pdfsizeopt.py/pdfsizeopt/main.py", line 5572, in UnifyType1CFonts
  File "/var/ebs0/cpa/private/dj/pdfsizeopt.try/pdfsizeopt.py/pdfsizeopt/main.py", line 5286, in ParseType1CFonts
  File "/var/ebs0/cpa/private/dj/pdfsizeopt.try/pdfsizeopt.py/pdfsizeopt/main.py", line 141, in GetGsCommand
AssertionError: Ghostscript gs does not seem to work.

Original issue reported on code.google.com by mitch...@gmail.com on 20 Jan 2015 at 8:26

GoogleCodeExporter commented 8 years ago
I've resolved this by moving the files from pdfsizeopt_libexec to 
pdfsizeopt.try.

Original comment by mitch...@gmail.com on 21 Jan 2015 at 3:01