diff options
author | Norbert Preining <norbert@preining.info> | 2022-05-19 03:00:53 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-05-19 03:00:53 +0000 |
commit | 049d8c10a2be69e330d26efa5116b5ec451b8eab (patch) | |
tree | db15bcee04033ec46962d22ab2c2da105a2dd059 /dviware/dvisvgm/src/PSInterpreter.cpp | |
parent | 606c3150f6696596010034bfce56f3b565fd7c85 (diff) |
CTAN sync 202205190300
Diffstat (limited to 'dviware/dvisvgm/src/PSInterpreter.cpp')
-rw-r--r-- | dviware/dvisvgm/src/PSInterpreter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dviware/dvisvgm/src/PSInterpreter.cpp b/dviware/dvisvgm/src/PSInterpreter.cpp index e796c760e3..cb74120309 100644 --- a/dviware/dvisvgm/src/PSInterpreter.cpp +++ b/dviware/dvisvgm/src/PSInterpreter.cpp @@ -63,6 +63,12 @@ void PSInterpreter::init () { gsargs.emplace_back("-dDELAYSAFER"); gsargs.emplace_back("-dALLOWPSTRANSPARENCY"); } + // GS 9.55.0 introduced a new, C-based PDF interpreter which is enabled by default + // as of GS 9.56.0. Since dvisvgm relies on the old PS-based interpreter for its + // PDF support, we try to disable the new one. + // https://www.ghostscript.com/doc/9.56.0/Use.htm#PDF_switches + if (gsrev >= 9560) + gsargs.emplace_back("-dNEWPDF=false"); } _gs.init(gsargs.size(), gsargs.data(), this); _gs.set_stdio(input, output, error); |