From a0e70b370afcb628caabb3e8610d600fea6966f3 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 5 Jan 2024 12:16:13 -0500 Subject: Wiring for --set-page-labels: manual (non-bisectable commit) This commit contains only the manual changes. It is separated for clarity. This commit would not pass CI because it lacks the automated changes, which appear in the next commit. --- include/qpdf/QPDFJob.hh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include') diff --git a/include/qpdf/QPDFJob.hh b/include/qpdf/QPDFJob.hh index 01fe35ae..9a7afb0f 100644 --- a/include/qpdf/QPDFJob.hh +++ b/include/qpdf/QPDFJob.hh @@ -296,6 +296,23 @@ class QPDFJob Config* config; }; + class PageLabelsConfig { + friend class QPDFJob; + friend class Config; + + public: + QPDF_DLL + Config* endSetPageLabels(); + +#include + + private: + PageLabelsConfig(Config*); + PageLabelsConfig(PagesConfig const&) = delete; + + Config* config; + }; + class Config { friend class QPDFJob; @@ -313,6 +330,8 @@ class QPDFJob Config* outputFile(std::string const& filename); QPDF_DLL Config* replaceInput(); + QPDF_DLL + Config* setPageLabels(std::vector const& specs); QPDF_DLL std::shared_ptr copyAttachmentsFrom(); @@ -675,6 +694,7 @@ class QPDFJob bool json_output{false}; std::string update_from_json; bool report_mem_usage{false}; + std::vector page_label_specs; }; std::shared_ptr m; }; -- cgit v1.2.3-70-g09d2