diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc index a01a4b3..8a8241b 100644 --- a/poppler/PSOutputDev.cc +++ b/poppler/PSOutputDev.cc @@ -3521,6 +3521,7 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) { saveState(NULL); } + xScale = yScale = 1; switch (mode) { case psModePSOrigPageSizes: @@ -3694,7 +3695,6 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) { if (tx != 0 || ty != 0) { writePSFmt("{0:.6g} {1:.6g} translate\n", tx, ty); } - xScale = yScale = 1; break; case psModeForm: @@ -3702,7 +3702,6 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) { writePS("begin xpdf begin\n"); writePS("pdfStartPage\n"); tx = ty = 0; - xScale = yScale = 1; rotate = 0; break; }