diff options
author | Sarper Akdemir <sarper.akdemir.extern@allotropia.de> | 2023-08-31 19:49:42 +0300 |
---|---|---|
committer | Sarper Akdemir <sarper.akdemir.extern@allotropia.de> | 2023-09-04 20:54:25 +0200 |
commit | b273a0c1527193e21fbd0ccbc23853205f90056b (patch) | |
tree | 7f0629c4be260b49d810fb035f4d1bcc5c71f70c /vcl/source/pdf | |
parent | 0deea02b1da1001fa497dc5afa5e43207af491d5 (diff) |
tdf#138792: PDF export: export metadata dc:format
Export application/pdf MIMEType in dc:format
Change-Id: I7cb658c869898df3a9436937329b4082843338bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156507
Tested-by: Jenkins
Reviewed-by: Sarper Akdemir <sarper.akdemir.extern@allotropia.de>
Diffstat (limited to 'vcl/source/pdf')
-rw-r--r-- | vcl/source/pdf/XmpMetadata.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/pdf/XmpMetadata.cxx b/vcl/source/pdf/XmpMetadata.cxx index 7496ab26e3f5..cb88016365b3 100644 --- a/vcl/source/pdf/XmpMetadata.cxx +++ b/vcl/source/pdf/XmpMetadata.cxx @@ -73,6 +73,11 @@ void XmpMetadata::write() aXmlWriter.startElement("rdf:Description"); aXmlWriter.attribute("rdf:about", OString("")); aXmlWriter.attribute("xmlns:dc", OString("http://purl.org/dc/elements/1.1/")); + + aXmlWriter.startElement("dc:format"); + aXmlWriter.content("application/pdf"); + aXmlWriter.endElement(); + if (!msTitle.isEmpty()) { // this is according to PDF/A-1, technical corrigendum 1 (2007-04-01) |