2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 10:58:58 +00:00

Fix comment on duplicated top-level json keys

This commit is contained in:
Jay Berkenbilt 2022-01-07 17:15:15 -05:00
parent 53ba65eb59
commit 5303130cf9
3 changed files with 10 additions and 8 deletions

View File

@ -1,5 +1,5 @@
# Generated by generate_auto_job
generate_auto_job 019081046f1bc19f498134eae00344ecfc65b4e52442ee5f1bc80bff99689443
job.yml 8e5b3fe5a6abea64a5a33977c440a7ac9ecc4516d2a131ed38fd4bc1a73445d7
job.yml 25c85cba1ae01dac9cd0f9cb7b734e7e3e531c0023ea2b892dc0d40bda1c1146
libqpdf/qpdf/auto_job_decl.hh 97395ecbe590b23ae04d6cce2080dbd0e998917ff5eeaa5c6aafa91041d3cd6a
libqpdf/qpdf/auto_job_init.hh 465bf46769559ceb77110d1b9d3293ba9b3595850b49848c31aeabd10aadb4ad

View File

@ -29,7 +29,9 @@ choices:
- print
- screen
json_key:
# QXXXQ duplicated top-level json keys
# The list of selectable top-level keys id duplicated in the
# following places: job.yml, QPDFJob::json_schema, and
# QPDFJob::doJSON.
- acroform
- attachments
- encrypt

View File

@ -1469,9 +1469,9 @@ QPDFJob::json_schema(std::set<std::string>* keys)
bool all_keys = ((keys == 0) || keys->empty());
// QXXXQ
// The list of selectable top-level keys id duplicated in three
// places: json_schema, doJSON, and initOptionTable.
// The list of selectable top-level keys id duplicated in the
// following places: job.yml, QPDFJob::json_schema, and
// QPDFJob::doJSON.
if (all_keys || keys->count("objects"))
{
schema.addDictionaryMember(
@ -1809,9 +1809,9 @@ QPDFJob::doJSON(QPDF& pdf)
"decodelevel", JSON::makeString(decode_level_str));
bool all_keys = o.json_keys.empty();
// QXXXQ
// The list of selectable top-level keys id duplicated in three
// places: json_schema, doJSON, and initOptionTable.
// The list of selectable top-level keys id duplicated in the
// following places: job.yml, QPDFJob::json_schema, and
// QPDFJob::doJSON.
if (all_keys || o.json_keys.count("objects"))
{
doJSONObjects(pdf, j);