Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghostscript compatibility #157

Open
pts opened this issue Feb 21, 2023 · 2 comments
Open

Ghostscript compatibility #157

pts opened this issue Feb 21, 2023 · 2 comments
Assignees
Labels

Comments

@pts
Copy link
Owner

pts commented Feb 21, 2023

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:

@pts pts added the question label Feb 21, 2023
@pts pts self-assigned this Feb 21, 2023
@rbubley
Copy link

rbubley commented Feb 21, 2023

I've been using 9.14.1 (patched) successfully for many months.

@pts
Copy link
Owner Author

pts commented Feb 22, 2023

@rbubley: pdfsizeopt has been officially ported to macOS with 64-bit Intel x86 processors. (More details here: #158) This port includes official Ghostscript 9.05 binaries within https://github.com/pts/pdfsizeopt/releases/download/2023-02-20/pdfsizeopt_libexec_darwinc64-v3.tar.gz . Installation instructions on https://github.com/pts/pdfsizeopt have also been updated.

If you encounter any problems, please file an issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants