summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-04-17 17:28:58 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-05-05 10:23:32 +0200
commit969bafd6a41b73608396e608df998aa425a5d81a (patch)
treea8b0056008fddb30145ca7ed5ce28d35c1a85fae /filter
parenteaafd7378bd3a06d2d99360667858a3b6106d0de (diff)
Change default PDF version to 1.6 (released in 2004)
We already write markup which is newer than 1.5, but the PDF version was not changed. Fix the one violation I'm aware of. Printing is left unchanged, similar to how commit 99ac4ee05b039166eedfe361fb985682fd92dd13 (Change default PDF version to 1.5, 2018-04-24) updated the default last time. (cherry picked from commit 141e0449fdab89384564659191492b698e4b13d8) Conflicts: filter/source/pdf/pdfexport.cxx include/vcl/pdfwriter.hxx Change-Id: I9598dc46fe7db428bd2eff98bebff8b3c873b4ff
Diffstat (limited to 'filter')
-rw-r--r--filter/source/pdf/pdfexport.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index c24e3e6581f4..d5c282053a98 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -601,7 +601,7 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
{
default:
case 0:
- aContext.Version = vcl::PDFWriter::PDFVersion::PDF_1_5;
+ aContext.Version = vcl::PDFWriter::PDFVersion::PDF_1_6;
break;
case 1:
aContext.Version = vcl::PDFWriter::PDFVersion::PDF_A_1;
@@ -617,6 +617,9 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
mbEncrypt = false; // no encryption
xEnc.clear();
break;
+ case 15:
+ aContext.Version = vcl::PDFWriter::PDFVersion::PDF_1_5;
+ break;
case 16:
aContext.Version = vcl::PDFWriter::PDFVersion::PDF_1_6;
break;