diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2024-12-11 13:51:50 +0900 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2024-12-16 13:49:42 +0100 |
commit | 553feed74089bca67955a95085655d5ed726868e (patch) | |
tree | dd84588d7483aba6f6ac5df30b5da2dce801765a | |
parent | 5d2b03b564e5f89d972d49a86154163abeeef0e7 (diff) |
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 <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r-- | include/vcl/pdfwriter.hxx | 11 |
1 files changed, 6 insertions, 5 deletions
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 ), |