include/vcl/pdfwriter.hxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
New commits: commit 553feed74089bca67955a95085655d5ed726868e Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Wed Dec 11 13:51:50 2024 +0900 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Mon Dec 16 13:49:42 2024 +0100 pdf: add Default entry to PDFVersion enum , use it in constructor This is added so we can change the default more easily. Also documented some entries on what PDF version those are based on. Change-Id: Ic11150017b3f3471125cea854a58d0762bc976c8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178269 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx index e070ec00bd84..0748bf6df933 100644 --- a/include/vcl/pdfwriter.hxx +++ b/include/vcl/pdfwriter.hxx @@ -191,11 +191,12 @@ public: PDF_1_6, PDF_1_7, PDF_2_0, - PDF_A_1, - PDF_A_2, - PDF_A_3, + PDF_A_1, // PDF/A-1b - Based on PDF 1.4. PDF/A-1a is not implemented. + PDF_A_2, // Based on PDF 1.7 + PDF_A_3, // Based on PDF 1.7 + allows embedded PDF_A_4, // Based on PDF 2.0 - }; //i59651, PDF/A-1b & -1a, only -1b implemented for now + Default = PDF_1_7 + }; // for the meaning of DestAreaType please look at PDF Reference Manual // version 1.4 section 8.2.1, page 475 @@ -703,7 +704,7 @@ public: DefaultLinkAction( PDFWriter::URIAction ), ConvertOOoTargetToPDFTarget( false ), ForcePDFAction( false ), - Version(PDFWriter::PDFVersion::PDF_1_7), + Version(PDFWriter::PDFVersion::Default), UniversalAccessibilityCompliance( false ), Tagged( false ), SubmitFormat( PDFWriter::FDF ),