|
|
|
@ -151,7 +151,7 @@ void XPDFRenderer::render(QPainter *p, int pageNumber, const QRectF &bounds) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QImage* XPDFRenderer::createPDFImage(int pageNumber, const qreal xscale, const qreal yscale, const QRectF &bounds) |
|
|
|
|
QImage* XPDFRenderer::createPDFImage(int pageNumber, qreal xscale, qreal yscale, const QRectF &bounds) |
|
|
|
|
{ |
|
|
|
|
if (isValid()) |
|
|
|
|
{ |
|
|
|
@ -169,7 +169,7 @@ QImage* XPDFRenderer::createPDFImage(int pageNumber, const qreal xscale, const q |
|
|
|
|
|
|
|
|
|
if (bounds.isNull()) |
|
|
|
|
{ |
|
|
|
|
mDocument->displayPage(mSplash, pageNumber, this->dpiForRendering, this->dpiForRendering, |
|
|
|
|
mDocument->displayPage(mSplash, pageNumber, this->dpiForRendering * xscale, this->dpiForRendering *yscale, |
|
|
|
|
rotation, useMediaBox, crop, printing); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
@ -179,7 +179,7 @@ QImage* XPDFRenderer::createPDFImage(int pageNumber, const qreal xscale, const q |
|
|
|
|
qreal sliceW = bounds.width() * xscale; |
|
|
|
|
qreal sliceH = bounds.height() * yscale; |
|
|
|
|
|
|
|
|
|
mDocument->displayPageSlice(mSplash, pageNumber, this->dpiForRendering, this->dpiForRendering, |
|
|
|
|
mDocument->displayPageSlice(mSplash, pageNumber, this->dpiForRendering * xscale, this->dpiForRendering * yscale, |
|
|
|
|
rotation, useMediaBox, crop, printing, mSliceX, mSliceY, sliceW, sliceH); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|