diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2019-03-11 04:01:47 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2019-03-16 23:44:44 +0100 |
commit | ed4a0eed82e2f29e8163a445db992d22c6d07134 (patch) | |
tree | 25af42b6a0b438def76f2227ee2595f66e2bf06a /filter/source/pdf/pdfexport.cxx | |
parent | 6907cbd0f8e198a0f1810b1a07f552a47c9da660 (diff) |
tdf#62728 add PDF/A-2 support, change UI default to use that
There was not much missing to make LibreOffice export valid PDF/A-2,
so let's add that, and switch the UI to use that instead of A-1.
The old PDF/A-1 feature is still accessible via UNO / filter
parameter 'SelectPdfVersion':
- 1 gives you PDF/A-1a
- 2 gives you PDF/A-2b
- 16 gives you PDF 1.6
Change-Id: Iea4262b119bcf33b75f3d1406cc793bdcaec65d1
Reviewed-on: https://gerrit.libreoffice.org/69294
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'filter/source/pdf/pdfexport.cxx')
-rw-r--r-- | filter/source/pdf/pdfexport.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx index 8710146ba27e..2ca3829db36a 100644 --- a/filter/source/pdf/pdfexport.cxx +++ b/filter/source/pdf/pdfexport.cxx @@ -601,6 +601,13 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >& mbEncrypt = false; // no encryption xEnc.clear(); break; + case 2: + aContext.Version = vcl::PDFWriter::PDFVersion::PDF_A_2; + mbUseTaggedPDF = true; // force the tagged PDF as well + mbRemoveTransparencies = false; // PDF/A-2 does allow transparencies + mbEncrypt = false; // no encryption + xEnc.clear(); + break; case 16: aContext.Version = vcl::PDFWriter::PDFVersion::PDF_1_6; break; |