diff options
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); |