poppler/Gfx.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
New commits: commit 4411426325e05228c57ae05a3849443b4da16b21 Author: Thomas Freitag <thomas.freitag....@gmail.com> Date: Thu Jul 16 16:57:27 2020 +0000 In case of sub-page objects: initialize clip max values considering the render resolution Fixes #937 diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc index 139261da..650cff83 100644 --- a/poppler/Gfx.cc +++ b/poppler/Gfx.cc @@ -529,7 +529,13 @@ Gfx::Gfx(PDFDoc *docA, OutputDev *outA, Dict *resDict, const PDFRectangle *box, // initialize out = outA; - state = new GfxState(72, 72, box, 0, false); + double hDPI = 72; + double vDPI = 72; + if (gfxA) { + hDPI = gfxA->getState()->getHDPI(); + vDPI = gfxA->getState()->getVDPI(); + } + state = new GfxState(hDPI, vDPI, box, 0, false); stackHeight = 1; pushStateGuard(); fontChanged = false; _______________________________________________ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler