path: root/src/gui/painting/qpagedpaintdevice.cpp
diff options
authorAndre de la Rocha <>2018-09-06 17:16:44 +0200
committerAndre de la Rocha <>2018-10-22 15:53:17 +0000
commit1bb8627f8f1dea546f766a37888fe331381fa333 (patch)
tree966542ed538ae8807405dfeeed0f7da44df8425c /src/gui/painting/qpagedpaintdevice.cpp
parenta87f85dbf9bd1ea90936bd9a4609229edb15c264 (diff)
Extend PDF engine to allow the generation of PDFs with huge pages
Qt's PDF engine previously supported only the PDF v1.4 standard, which only allows pages of up to 200x200in (about 5x5m). This patch optionally enables the generation of PDF v1.6-compliant files that allow the redefinition of user space units, so that pages of up to 381x381km are now possible. By default, generated files are compliant to v1.4 spec. v1.6 compliance must be enabled by, e.g., calling QPrinter::setPdfVersion() with QPrinter::PdfVersion_1_6. PDF v1.6-compliant files require Adobe Reader 7.0 or newer (also worked with the built-in viewers in current versions of Chrome, Firefox and Edge). Task-number: QTBUG-69386 Change-Id: I21708e0d465d5d7d9e46ff06dd04acfe1dfb0858 Reviewed-by: Friedemann Kleint <> Reviewed-by: Andy Shaw <> Reviewed-by: Oliver Wolff <>
Diffstat (limited to 'src/gui/painting/qpagedpaintdevice.cpp')
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/painting/qpagedpaintdevice.cpp b/src/gui/painting/qpagedpaintdevice.cpp
index 613a686848..72b2834470 100644
--- a/src/gui/painting/qpagedpaintdevice.cpp
+++ b/src/gui/painting/qpagedpaintdevice.cpp
@@ -290,7 +290,8 @@ QPagedPaintDevicePrivate *QPagedPaintDevice::dd()
\value PdfVersion_A1b A PDF/A-1b compatible document is produced.
- \since 5.10
+ \value PdfVersion_1_6 A PDF 1.6 compatible document is produced.
+ This value was added in Qt 5.12.