From cd30f626fedef7c577766d32e84a65a7f0fbcb7a Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 30 Jan 2022 14:10:19 -0500 Subject: QPDFJob: remove from json a few things that only make sense from CLI --- libqpdf/qpdf/auto_job_json_init.hh | 3 --- libqpdf/qpdf/auto_job_schema.hh | 3 --- 2 files changed, 6 deletions(-) (limited to 'libqpdf') diff --git a/libqpdf/qpdf/auto_job_json_init.hh b/libqpdf/qpdf/auto_job_json_init.hh index eb32fcb8..87489412 100644 --- a/libqpdf/qpdf/auto_job_json_init.hh +++ b/libqpdf/qpdf/auto_job_json_init.hh @@ -87,9 +87,7 @@ beginDict("inspect", bindJSON(&Handlers::beginInspect), bindBare(&Handlers::endI addBare("check", [this]() { c_main->check(); }); addBare("checkLinearization", [this]() { c_main->checkLinearization(); }); addBare("filteredStreamData", [this]() { c_main->filteredStreamData(); }); -addBare("isEncrypted", [this]() { c_main->isEncrypted(); }); addBare("rawStreamData", [this]() { c_main->rawStreamData(); }); -addBare("requiresPassword", [this]() { c_main->requiresPassword(); }); addBare("showEncryption", [this]() { c_main->showEncryption(); }); addBare("showEncryptionKey", [this]() { c_main->showEncryptionKey(); }); addBare("showLinearization", [this]() { c_main->showLinearization(); }); @@ -111,7 +109,6 @@ addChoices("keepFilesOpen", yn_choices, [this](char const* p) { c_main->keepFile addParameter("keepFilesOpenThreshold", [this](char const* p) { c_main->keepFilesOpenThreshold(p); }); addBare("noWarn", [this]() { c_main->noWarn(); }); addBare("verbose", [this]() { c_main->verbose(); }); -addBare("warningExit0", [this]() { c_main->warningExit0(); }); addBare("ignoreXrefStreams", [this]() { c_main->ignoreXrefStreams(); }); addBare("passwordIsHexKey", [this]() { c_main->passwordIsHexKey(); }); addChoices("passwordMode", password_mode_choices, [this](char const* p) { c_main->passwordMode(p); }); diff --git a/libqpdf/qpdf/auto_job_schema.hh b/libqpdf/qpdf/auto_job_schema.hh index 94391932..ba5c93df 100644 --- a/libqpdf/qpdf/auto_job_schema.hh +++ b/libqpdf/qpdf/auto_job_schema.hh @@ -72,9 +72,7 @@ static constexpr char const* JOB_SCHEMA_DATA = R"({ "check": "partially check whether PDF is valid", "checkLinearization": "check linearization tables", "filteredStreamData": "show filtered stream data", - "isEncrypted": "silently test whether a file is encrypted", "rawStreamData": "show raw stream data", - "requiresPassword": "silently test a file's password", "showEncryption": "information about encrypted files", "showEncryptionKey": "show key with showEncryption", "showLinearization": "show linearization hint tables", @@ -100,7 +98,6 @@ static constexpr char const* JOB_SCHEMA_DATA = R"({ "keepFilesOpenThreshold": "set threshold for keepFilesOpen", "noWarn": "suppress printing of warning messages", "verbose": "print additional information", - "warningExit0": "exit 0 even with warnings", "ignoreXrefStreams": "use xref tables rather than streams", "passwordIsHexKey": "provide hex-encoded encryption key", "passwordMode": "tweak how qpdf encodes passwords", -- cgit v1.2.3-70-g09d2