diff --git a/src/adaptors/UBExportFullPDF.cpp b/src/adaptors/UBExportFullPDF.cpp index 8f6b80f6..858809c6 100644 --- a/src/adaptors/UBExportFullPDF.cpp +++ b/src/adaptors/UBExportFullPDF.cpp @@ -100,7 +100,7 @@ void UBExportFullPDF::saveOverlayPdf(UBDocumentProxy* pDocumentProxy, const QStr if (pageIndex != 0) pdfPrinter.newPage(); //render to PDF - scene->render(pdfPainter, QRectF(), scene->normalizedSceneRect()); + scene->render(pdfPainter); //restore screen rendering quality scene->setRenderingContext(UBGraphicsScene::Screen); diff --git a/src/adaptors/UBExportPDF.cpp b/src/adaptors/UBExportPDF.cpp index cd87c800..ae13a541 100644 --- a/src/adaptors/UBExportPDF.cpp +++ b/src/adaptors/UBExportPDF.cpp @@ -103,7 +103,7 @@ void UBExportPDF::persistsDocument(UBDocumentProxy* pDocumentProxy, const QStrin pdfPrinter.setPaperSize(QSizeF(pageSize.width()*scaleFactor, pageSize.height()*scaleFactor), QPrinter::Point); if(painterNeedsBegin) painterNeedsBegin = !pdfPainter.begin(&pdfPrinter); //render to PDF - scene->render(&pdfPainter, QRectF(), scene->normalizedSceneRect()); + scene->render(&pdfPainter); if (pageIndex < existingPageCount - 1) pdfPrinter.newPage();