path: root/src/gui/painting/qpdfwriter.h
diff options
authorTobias Koenig <>2017-02-14 10:11:19 +0100
committerTobias Koenig <>2017-03-28 07:02:05 +0000
commit6c32927f8cf226b8158dd25f4b92a6853dadb8b6 (patch)
tree7fcd1dcfa76c05d59fb6f115d133308dfe2922e2 /src/gui/painting/qpdfwriter.h
parent3398d9d40cb0dae2dc2a1a4f7dc3b4b9cceae903 (diff)
Improve PDF/A-1b support in QPdfWriter
Add new enum QPrinter::PdfVersion to switch QPdfWriter into PDF/A-1b mode. In that mode - meta data are embedded in XMP format - a color profile for sRGB is embedded and an OutputIntent defined - the ID key is added to the document trailer dictionary - a CIDSet entry is added to the font descriptor - transparency is removed from pens, brushes and images Change-Id: Ia8a24d83609b239e716aefc1ba05f07320dbd290 Reviewed-by: Lars Knoll <>
Diffstat (limited to 'src/gui/painting/qpdfwriter.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/painting/qpdfwriter.h b/src/gui/painting/qpdfwriter.h
index 17c73dd480..b260805b2b 100644
--- a/src/gui/painting/qpdfwriter.h
+++ b/src/gui/painting/qpdfwriter.h
@@ -61,6 +61,9 @@ public:
explicit QPdfWriter(QIODevice *device);
+ void setPdfVersion(PdfVersion version);
+ PdfVersion pdfVersion() const;
QString title() const;
void setTitle(const QString &title);