summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/src
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-05-19 03:00:53 +0000
committerNorbert Preining <norbert@preining.info>2022-05-19 03:00:53 +0000
commit049d8c10a2be69e330d26efa5116b5ec451b8eab (patch)
treedb15bcee04033ec46962d22ab2c2da105a2dd059 /dviware/dvisvgm/src
parent606c3150f6696596010034bfce56f3b565fd7c85 (diff)
CTAN sync 202205190300
Diffstat (limited to 'dviware/dvisvgm/src')
-rw-r--r--dviware/dvisvgm/src/ImageToSVG.cpp1
-rw-r--r--dviware/dvisvgm/src/PSInterpreter.cpp6
2 files changed, 7 insertions, 0 deletions
diff --git a/dviware/dvisvgm/src/ImageToSVG.cpp b/dviware/dvisvgm/src/ImageToSVG.cpp
index e810f32e66..c38d3cc9b9 100644
--- a/dviware/dvisvgm/src/ImageToSVG.cpp
+++ b/dviware/dvisvgm/src/ImageToSVG.cpp
@@ -100,6 +100,7 @@ void ImageToSVG::convert (int pageno) {
" x " << XMLString(_bbox.height()*bp2mm) << "mm)\n";
Message::mstream(false, Message::MC_PAGE_WRITTEN) << "output written to " << svgfname << '\n';
}
+ _bbox.invalidate();
_svg.reset();
}
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);