SANKORE-527

PDF : Sankore overwrite Pdf layer to empty, after picture(shape) was "set as background"
preferencesAboutTextFull
Anatoly Mihalchenko 13 years ago
parent e304b03fc2
commit 35a5e40b9a
  1. 2
      src/adaptors/UBExportFullPDF.cpp
  2. 2
      src/adaptors/UBExportPDF.cpp

@ -100,7 +100,7 @@ void UBExportFullPDF::saveOverlayPdf(UBDocumentProxy* pDocumentProxy, const QStr
if (pageIndex != 0) pdfPrinter.newPage(); if (pageIndex != 0) pdfPrinter.newPage();
//render to PDF //render to PDF
scene->render(pdfPainter); scene->render(pdfPainter, QRectF(), scene->normalizedSceneRect());
//restore screen rendering quality //restore screen rendering quality
scene->setRenderingContext(UBGraphicsScene::Screen); scene->setRenderingContext(UBGraphicsScene::Screen);

@ -103,7 +103,7 @@ void UBExportPDF::persistsDocument(UBDocumentProxy* pDocumentProxy, const QStrin
pdfPrinter.setPaperSize(QSizeF(pageSize.width()*scaleFactor, pageSize.height()*scaleFactor), QPrinter::Point); pdfPrinter.setPaperSize(QSizeF(pageSize.width()*scaleFactor, pageSize.height()*scaleFactor), QPrinter::Point);
if(painterNeedsBegin) painterNeedsBegin = !pdfPainter.begin(&pdfPrinter); if(painterNeedsBegin) painterNeedsBegin = !pdfPainter.begin(&pdfPrinter);
//render to PDF //render to PDF
scene->render(&pdfPainter); scene->render(&pdfPainter, QRectF(), scene->normalizedSceneRect());
if (pageIndex < existingPageCount - 1) pdfPrinter.newPage(); if (pageIndex < existingPageCount - 1) pdfPrinter.newPage();

Loading…
Cancel
Save