diff --git a/PdfFile/SrcReader/RendererOutputDev.cpp b/PdfFile/SrcReader/RendererOutputDev.cpp index d92eebb6f6..d21b3ed0bf 100644 --- a/PdfFile/SrcReader/RendererOutputDev.cpp +++ b/PdfFile/SrcReader/RendererOutputDev.cpp @@ -1677,10 +1677,10 @@ namespace PdfReader oImage->Create(pBgraData, nWidth, nHeight, 4 * nWidth); double xMin, yMin, xMax, yMax; - xMin = nX0 * dXStep; - yMin = nY0 * dYStep; - xMax = nX1 * dXStep; - yMax = nY1 * dYStep; + xMin = nX0 * dXStep + pBBox[0]; + yMin = nY0 * dYStep + pBBox[1]; + xMax = nX1 * dXStep + pBBox[0]; + yMax = nY1 * dYStep + pBBox[1]; Transform(pMatrix, xMin, yMin, &xMin, &yMin); Transform(pMatrix, xMax, yMax, &xMax, &yMax); pGState->moveTo(xMin, yMin);