Fix to SANKORE-642. Exporting PDF with annotations works fine now.

preferencesAboutTextFull
Aleksei Kanash 13 years ago
parent 17dd85640b
commit c904d74fdb
  1. 2
      src/adaptors/UBExportFullPDF.cpp

@ -100,6 +100,7 @@ void UBExportFullPDF::saveOverlayPdf(UBDocumentProxy* pDocumentProxy, const QStr
if (pageIndex != 0) pdfPrinter.newPage();
//render to PDF
scene->setDrawingMode(true);
scene->render(pdfPainter, QRectF(), scene->normalizedSceneRect());
//restore screen rendering quality
@ -107,6 +108,7 @@ void UBExportFullPDF::saveOverlayPdf(UBDocumentProxy* pDocumentProxy, const QStr
scene->setRenderingQuality(UBItem::RenderingQualityNormal);
//restore background state
scene->setDrawingMode(false);
scene->setBackground(isDark, isCrossed);
}

Loading…
Cancel
Save