aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2024-01-05 18:16:13 +0100
committerJay Berkenbilt <ejb@ql.org>2024-01-05 23:10:32 +0100
commita0e70b370afcb628caabb3e8610d600fea6966f3 (patch)
tree1a86fd7d0a654a5db10ba351a824640dbe4d0ad0 /include
parent1921e44ca7ba50b48b1baa78d147b52fe1aae19a (diff)
downloadqpdf-a0e70b370afcb628caabb3e8610d600fea6966f3.tar.zst
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.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFJob.hh20
1 files changed, 20 insertions, 0 deletions
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 <qpdf/auto_job_c_set_page_labels.hh>
+
+ 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<std::string> const& specs);
QPDF_DLL
std::shared_ptr<CopyAttConfig> copyAttachmentsFrom();
@@ -675,6 +694,7 @@ class QPDFJob
bool json_output{false};
std::string update_from_json;
bool report_mem_usage{false};
+ std::vector<std::string> page_label_specs;
};
std::shared_ptr<Members> m;
};