Commit f2409f4fca3ace5627e7166f9c27167aab869f2a

Authored by Jay Berkenbilt
1 parent 59b77510

Minor cleanup

generate_auto_job
... ... @@ -230,7 +230,6 @@ class Main:
230 230 f'help for unknown option {option},'
231 231 f' lineno={lineno}')
232 232 if option not in self.help_options:
233   - # QXXXQ also need to exclude help table
234 233 self.jdata[option[2:]]['help'] = short_text
235 234 print(f'ap.addOptionHelp("{option}", "{topic}",'
236 235 f' "{short_text}", R"({long_text})");', file=f)
... ...
include/qpdf/QPDFJob.hh
... ... @@ -192,8 +192,8 @@ class QPDFJob
192 192 public:
193 193 QPDF_DLL
194 194 PagesConfig& pageSpec(std::string const& filename,
195   - char const* password,
196   - std::string const& range);
  195 + std::string const& range,
  196 + char const* password = nullptr);
197 197  
198 198 # include <qpdf/auto_job_c_pages.hh>
199 199  
... ...
job.sums
1 1 # Generated by generate_auto_job
2   -generate_auto_job 0eaf9d7724199a2a0a57732ea100f2eb55aaa8a1eccea99196190ff4b79fd6e5
  2 +generate_auto_job 207b392d0d199a6cc0e5eb52044e9adbc729323c9a58f9d547605272a0d9b29c
3 3 include/qpdf/auto_job_c_att.hh ecc3f8f711b486b491e811176362a90c022eb225ff12157df3a10ca021be87b1
4 4 include/qpdf/auto_job_c_copy_att.hh caffae3d1faf2cd92a07ba77da638cce31da3e074a047918834195c0f3ed508a
5 5 include/qpdf/auto_job_c_enc.hh e2e1a163a7ffebbf8af169dc4a28ab00df3b8d229864bca7d203dde8b56f0864
... ...
libqpdf/QPDFJob.cc
... ... @@ -547,6 +547,7 @@ QPDFJob::parseNumrange(char const* range, int max)
547 547 void
548 548 QPDFJob::run()
549 549 {
  550 + checkConfiguration();
550 551 std::shared_ptr<QPDF> pdf_ph;
551 552 try
552 553 {
... ...
libqpdf/QPDFJob_argv.cc
... ... @@ -356,7 +356,7 @@ ArgParser::argPagesPositional(char* arg)
356 356 {
357 357 range = "1-z";
358 358 }
359   - this->c_pages->pageSpec(file, this->pages_password, range);
  359 + this->c_pages->pageSpec(file, range, this->pages_password);
360 360 this->accumulated_args.clear();
361 361 this->pages_password = nullptr;
362 362 if (next_file != nullptr)
... ...
libqpdf/QPDFJob_config.cc
... ... @@ -932,8 +932,8 @@ QPDFJob::PagesConfig::end()
932 932  
933 933 QPDFJob::PagesConfig&
934 934 QPDFJob::PagesConfig::pageSpec(std::string const& filename,
935   - char const* password,
936   - std::string const& range)
  935 + std::string const& range,
  936 + char const* password)
937 937 {
938 938 this->config.o.m->page_specs.push_back(
939 939 QPDFJob::PageSpec(filename, password, range));
... ...