You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR Please install pdfsizeopt by following the installation instructions on https://github.com/pts/pdfsizeopt . By doing so, pdfsizeopt will use Ghostscript 9.05 bundled with it, and it will work.
Currently pdfsizeopt uses Ghostscript for various steps (see #63 for details). Because of feature removals and changes in newer versions of Ghostscript, only older versions of Ghostscript work with pdfsizeopt. Thus upgrading Ghostscript (as used by pdfsizeopt) would break the optimization of some PDFs. It's impossible to fix this (quickly) within pdfsizeopt, because some features used by pdfsizeopt have been removed from newer Ghostscript versions.
This shouldn't be a problem for most users, because pdfsizeopt, when installed as described at https://github.com/pts/pdfsizeopt, contains an instance of (older) Ghostscript which is fully compatible with pdfsizeopt.
Most of the problematic Ghostscript features are used by font optimization, which can be disabled by using pdfsizeopt --do-optimize-fonts=no. This will make pdfsizeopt succeed, but it will keep the output PDF larger than necessary (because font opitimization steps are skipped).
More details about individual Ghostscript versions:
Ghostscript 9.05: works, following the official installation instructions at https://github.com/pts/pdfsizeopt the user will get a copy of Ghostscript 9.05, and pdfsizeopt will use that instead of the system Ghostscript (e.g. /usr/bin/gs or /usr/local/bin/gs).
Ghostscript 9.10: works, some versions of pdfsizeopt had a copy of this version included
TL;DR Please install pdfsizeopt by following the installation instructions on https://github.com/pts/pdfsizeopt . By doing so, pdfsizeopt will use Ghostscript 9.05 bundled with it, and it will work.
Currently pdfsizeopt uses Ghostscript for various steps (see #63 for details). Because of feature removals and changes in newer versions of Ghostscript, only older versions of Ghostscript work with pdfsizeopt. Thus upgrading Ghostscript (as used by pdfsizeopt) would break the optimization of some PDFs. It's impossible to fix this (quickly) within pdfsizeopt, because some features used by pdfsizeopt have been removed from newer Ghostscript versions.
This shouldn't be a problem for most users, because pdfsizeopt, when installed as described at https://github.com/pts/pdfsizeopt, contains an instance of (older) Ghostscript which is fully compatible with pdfsizeopt.
Most of the problematic Ghostscript features are used by font optimization, which can be disabled by using
pdfsizeopt --do-optimize-fonts=no
. This will make pdfsizeopt succeed, but it will keep the output PDF larger than necessary (because font opitimization steps are skipped).More details about individual Ghostscript versions:
The text was updated successfully, but these errors were encountered: