pts / pdfsizeopt

PDF file size optimizer
GNU General Public License v2.0
750 stars 65 forks source link

Ghostscript 9.53 compatibility: Type1CConverter fails #144

Closed ageis closed 1 year ago

ageis commented 3 years ago

When using on Windows:

**** WARNING: The .setpdfwrite operator has been deprecated and will be removed entirely
              in the next release of Ghostscript. The functionality of this operator has
              been reduced to increasing the size of the VM threshold. If you believe you
              have a real need for this then you should replace your call to .setpdfwrite
              with:

                  3000000 setvmthreshold

Type1CConverter: using interpreter GPL Ghostscript 9531 20200914
Error: /undefined in .FontDirectory
Operand stack:
   --nostringval--   YQWGYE+FontAwesome
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1990   1   3   %oparray_pop   1989   1   3   %oparray_pop   1977   1   3   %oparray_pop   1833   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:733/1123(ro)(G)--   --dict:0/20(G)--   --dict:95/200(L)--
Current allocation mode is local
Current file position is 16882
GPL Ghostscript 9.53.1: Unrecoverable error, exit code 1
zvezdochiot commented 3 years ago

Hi @ageis .

GPL Ghostscript 9.53.1: Unrecoverable error, exit code 1

Just try to run the PDF through Ghostscript. What will he say to this?

okbel commented 3 years ago

Could repro on Mac

pts commented 1 year ago

Please install pdfsizeopt by following the installation instructions on https://github.com/pts/pdfsizeopt (it has been updated recently). By doing so, pdfsizeopt will use Ghostscript 9.05 bundled with it, and it will work.