diff options
author | Jay Berkenbilt <ejb@ql.org> | 2024-01-05 18:16:13 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2024-01-05 23:10:32 +0100 |
commit | a0e70b370afcb628caabb3e8610d600fea6966f3 (patch) | |
tree | 1a86fd7d0a654a5db10ba351a824640dbe4d0ad0 /libqpdf/QPDFJob_config.cc | |
parent | 1921e44ca7ba50b48b1baa78d147b52fe1aae19a (diff) | |
download | qpdf-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 'libqpdf/QPDFJob_config.cc')
-rw-r--r-- | libqpdf/QPDFJob_config.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libqpdf/QPDFJob_config.cc b/libqpdf/QPDFJob_config.cc index a0dc10f6..9651c3b9 100644 --- a/libqpdf/QPDFJob_config.cc +++ b/libqpdf/QPDFJob_config.cc @@ -1059,6 +1059,17 @@ QPDFJob::Config::encrypt( return std::shared_ptr<EncConfig>(new EncConfig(this)); } +QPDFJob::Config* +QPDFJob::Config::setPageLabels(const std::vector<std::string>& specs) +{ + // XXX validate + for (auto const& xxx: specs) { + std::cout << "XXX config: spec: " << xxx << std::endl; + } + o.m->page_label_specs = specs; + return this; +} + QPDFJob::EncConfig::EncConfig(Config* c) : config(c) { @@ -1213,3 +1224,14 @@ QPDFJob::EncConfig::forceR5() config->o.m->force_R5 = true; return this; } + +QPDFJob::PageLabelsConfig::PageLabelsConfig(Config* c) : + config(c) +{ +} + +QPDFJob::Config* +QPDFJob::PageLabelsConfig::endSetPageLabels() +{ + return this->config; +} |