diff options
Diffstat (limited to 'vcl/source/pdf/XmpMetadata.cxx')
-rw-r--r-- | vcl/source/pdf/XmpMetadata.cxx | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/vcl/source/pdf/XmpMetadata.cxx b/vcl/source/pdf/XmpMetadata.cxx index 47d76f187d02..c7e6b17deb3d 100644 --- a/vcl/source/pdf/XmpMetadata.cxx +++ b/vcl/source/pdf/XmpMetadata.cxx @@ -27,12 +27,7 @@ constexpr const char* constPadding = " " "\n"; } -XmpMetadata::XmpMetadata() - : mbWritten(false) - , mnPDF_A(0) - , mbPDF_UA(false) -{ -} +XmpMetadata::XmpMetadata() = default; void XmpMetadata::write() { @@ -62,10 +57,19 @@ void XmpMetadata::write() aXmlWriter.content(sPdfVersion); aXmlWriter.endElement(); - aXmlWriter.startElement("pdfaid:conformance"); - aXmlWriter.content("B"_ostr); - aXmlWriter.endElement(); + if (mnPDF_A == 4) + { + aXmlWriter.startElement("pdfaid:rev"); + aXmlWriter.content("2020"_ostr); + aXmlWriter.endElement(); + } + if (!msConformance.isEmpty()) + { + aXmlWriter.startElement("pdfaid:conformance"); + aXmlWriter.content(msConformance); + aXmlWriter.endElement(); + } aXmlWriter.endElement(); } |