aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFJob_argv.cc
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 /libqpdf/QPDFJob_argv.cc
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 'libqpdf/QPDFJob_argv.cc')
-rw-r--r--libqpdf/QPDFJob_argv.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/libqpdf/QPDFJob_argv.cc b/libqpdf/QPDFJob_argv.cc
index eadf9a33..737059f0 100644
--- a/libqpdf/QPDFJob_argv.cc
+++ b/libqpdf/QPDFJob_argv.cc
@@ -409,6 +409,26 @@ ArgParser::argEndCopyAttachment()
}
void
+ArgParser::argSetPageLabels()
+{
+ this->ap.selectOptionTable(O_SET_PAGE_LABELS);
+ accumulated_args.clear();
+}
+
+void
+ArgParser::argPageLabelsPositional(std::string const& arg)
+{
+ accumulated_args.push_back(arg);
+}
+
+void
+ArgParser::argEndSetPageLabels()
+{
+ c_main->setPageLabels(accumulated_args);
+ accumulated_args.clear();
+}
+
+void
ArgParser::argJobJsonHelp()
{
*QPDFLogger::defaultLogger()->getInfo()