// // This file is automatically generated by generate_auto_job. // Edits will be automatically overwritten if the build is // run in maintainer mode. // auto b = [this](void (ArgParser::*f)()) { return QPDFArgParser::bindBare(f, this); }; auto p = [this](void (ArgParser::*f)(char *)) { return QPDFArgParser::bindParam(f, this); }; char const* yn_choices[] = {"y", "n", 0}; char const* password_mode_choices[] = {"bytes", "hex-bytes", "unicode", "auto", 0}; char const* stream_data_choices[] = {"compress", "preserve", "uncompress", 0}; char const* decode_level_choices[] = {"none", "generalized", "specialized", "all", 0}; char const* object_streams_choices[] = {"disable", "preserve", "generate", 0}; char const* remove_unref_choices[] = {"auto", "yes", "no", 0}; char const* flatten_choices[] = {"all", "print", "screen", 0}; char const* json_key_choices[] = {"acroform", "attachments", "encrypt", "objectinfo", "objects", "outlines", "pagelabels", "pages", 0}; char const* print128_choices[] = {"full", "low", "none", 0}; char const* modify128_choices[] = {"all", "annotate", "form", "assembly", "none", 0}; this->ap.selectHelpOptionTable(); this->ap.addBare("version", b(&ArgParser::argVersion)); this->ap.addBare("copyright", b(&ArgParser::argCopyright)); this->ap.addBare("json-help", b(&ArgParser::argJsonHelp)); this->ap.addBare("show-crypto", b(&ArgParser::argShowCrypto)); this->ap.selectMainOptionTable(); this->ap.addPositional(p(&ArgParser::argPositional)); this->ap.addBare("add-attachment", b(&ArgParser::argAddAttachment)); this->ap.addBare("allow-weak-crypto", b(&ArgParser::argAllowWeakCrypto)); this->ap.addBare("check", b(&ArgParser::argCheck)); this->ap.addBare("check-linearization", b(&ArgParser::argCheckLinearization)); this->ap.addBare("coalesce-contents", b(&ArgParser::argCoalesceContents)); this->ap.addBare("copy-attachments-from", b(&ArgParser::argCopyAttachmentsFrom)); this->ap.addBare("decrypt", b(&ArgParser::argDecrypt)); this->ap.addBare("deterministic-id", b(&ArgParser::argDeterministicId)); this->ap.addBare("empty", b(&ArgParser::argEmpty)); this->ap.addBare("encrypt", b(&ArgParser::argEncrypt)); this->ap.addBare("externalize-inline-images", b(&ArgParser::argExternalizeInlineImages)); this->ap.addBare("filtered-stream-data", b(&ArgParser::argFilteredStreamData)); this->ap.addBare("flatten-rotation", b(&ArgParser::argFlattenRotation)); this->ap.addBare("generate-appearances", b(&ArgParser::argGenerateAppearances)); this->ap.addBare("ignore-xref-streams", b(&ArgParser::argIgnoreXrefStreams)); this->ap.addBare("is-encrypted", b(&ArgParser::argIsEncrypted)); this->ap.addBare("json", b(&ArgParser::argJson)); this->ap.addBare("keep-inline-images", b(&ArgParser::argKeepInlineImages)); this->ap.addBare("linearize", b(&ArgParser::argLinearize)); this->ap.addBare("list-attachments", b(&ArgParser::argListAttachments)); this->ap.addBare("newline-before-endstream", b(&ArgParser::argNewlineBeforeEndstream)); this->ap.addBare("no-original-object-ids", b(&ArgParser::argNoOriginalObjectIds)); this->ap.addBare("no-warn", b(&ArgParser::argNoWarn)); this->ap.addBare("optimize-images", b(&ArgParser::argOptimizeImages)); this->ap.addBare("overlay", b(&ArgParser::argOverlay)); this->ap.addBare("pages", b(&ArgParser::argPages)); this->ap.addBare("password-is-hex-key", b(&ArgParser::argPasswordIsHexKey)); this->ap.addBare("preserve-unreferenced", b(&ArgParser::argPreserveUnreferenced)); this->ap.addBare("preserve-unreferenced-resources", b(&ArgParser::argPreserveUnreferencedResources)); this->ap.addBare("progress", b(&ArgParser::argProgress)); this->ap.addBare("qdf", b(&ArgParser::argQdf)); this->ap.addBare("raw-stream-data", b(&ArgParser::argRawStreamData)); this->ap.addBare("recompress-flate", b(&ArgParser::argRecompressFlate)); this->ap.addBare("remove-page-labels", b(&ArgParser::argRemovePageLabels)); this->ap.addBare("replace-input", b(&ArgParser::argReplaceInput)); this->ap.addBare("requires-password", b(&ArgParser::argRequiresPassword)); this->ap.addBare("show-encryption", b(&ArgParser::argShowEncryption)); this->ap.addBare("show-encryption-key", b(&ArgParser::argShowEncryptionKey)); this->ap.addBare("show-linearization", b(&ArgParser::argShowLinearization)); this->ap.addBare("show-npages", b(&ArgParser::argShowNpages)); this->ap.addBare("show-pages", b(&ArgParser::argShowPages)); this->ap.addBare("show-xref", b(&ArgParser::argShowXref)); this->ap.addBare("static-aes-iv", b(&ArgParser::argStaticAesIv)); this->ap.addBare("static-id", b(&ArgParser::argStaticId)); this->ap.addBare("suppress-password-recovery", b(&ArgParser::argSuppressPasswordRecovery)); this->ap.addBare("suppress-recovery", b(&ArgParser::argSuppressRecovery)); this->ap.addBare("underlay", b(&ArgParser::argUnderlay)); this->ap.addBare("verbose", b(&ArgParser::argVerbose)); this->ap.addBare("warning-exit-0", b(&ArgParser::argWarningExit0)); this->ap.addBare("with-images", b(&ArgParser::argWithImages)); this->ap.addOptionalParameter("collate", p(&ArgParser::argCollate)); this->ap.addOptionalParameter("split-pages", p(&ArgParser::argSplitPages)); this->ap.addRequiredParameter("compression-level", p(&ArgParser::argCompressionLevel), "level"); this->ap.addRequiredParameter("copy-encryption", p(&ArgParser::argCopyEncryption), "file"); this->ap.addRequiredParameter("encryption-file-password", p(&ArgParser::argEncryptionFilePassword), "password"); this->ap.addRequiredParameter("force-version", p(&ArgParser::argForceVersion), "version"); this->ap.addRequiredParameter("ii-min-bytes", p(&ArgParser::argIiMinBytes), "minimum"); this->ap.addRequiredParameter("json-object", p(&ArgParser::argJsonObject), "trailer"); this->ap.addRequiredParameter("keep-files-open-threshold", p(&ArgParser::argKeepFilesOpenThreshold), "count"); this->ap.addRequiredParameter("linearize-pass1", p(&ArgParser::argLinearizePass1), "filename"); this->ap.addRequiredParameter("min-version", p(&ArgParser::argMinVersion), "version"); this->ap.addRequiredParameter("oi-min-area", p(&ArgParser::argOiMinArea), "minimum"); this->ap.addRequiredParameter("oi-min-height", p(&ArgParser::argOiMinHeight), "minimum"); this->ap.addRequiredParameter("oi-min-width", p(&ArgParser::argOiMinWidth), "minimum"); this->ap.addRequiredParameter("password", p(&ArgParser::argPassword), "password"); this->ap.addRequiredParameter("password-file", p(&ArgParser::argPasswordFile), "password"); this->ap.addRequiredParameter("remove-attachment", p(&ArgParser::argRemoveAttachment), "attachment"); this->ap.addRequiredParameter("rotate", p(&ArgParser::argRotate), "[+|-]angle"); this->ap.addRequiredParameter("show-attachment", p(&ArgParser::argShowAttachment), "attachment"); this->ap.addRequiredParameter("show-object", p(&ArgParser::argShowObject), "trailer"); this->ap.addChoices("compress-streams", p(&ArgParser::argCompressStreams), true, yn_choices); this->ap.addChoices("decode-level", p(&ArgParser::argDecodeLevel), true, decode_level_choices); this->ap.addChoices("flatten-annotations", p(&ArgParser::argFlattenAnnotations), true, flatten_choices); this->ap.addChoices("json-key", p(&ArgParser::argJsonKey), true, json_key_choices); this->ap.addChoices("keep-files-open", p(&ArgParser::argKeepFilesOpen), true, yn_choices); this->ap.addChoices("normalize-content", p(&ArgParser::argNormalizeContent), true, yn_choices); this->ap.addChoices("object-streams", p(&ArgParser::argObjectStreams), true, object_streams_choices); this->ap.addChoices("password-mode", p(&ArgParser::argPasswordMode), true, password_mode_choices); this->ap.addChoices("remove-unreferenced-resources", p(&ArgParser::argRemoveUnreferencedResources), true, remove_unref_choices); this->ap.addChoices("stream-data", p(&ArgParser::argStreamData), true, stream_data_choices); this->ap.registerOptionTable("pages", b(&ArgParser::argEndPages)); this->ap.addPositional(p(&ArgParser::argPagesPositional)); this->ap.addRequiredParameter("password", p(&ArgParser::argPagesPassword), "password"); this->ap.registerOptionTable("encryption", b(&ArgParser::argEndEncryption)); this->ap.addPositional(p(&ArgParser::argEncPositional)); this->ap.registerOptionTable("40-bit encryption", b(&ArgParser::argEnd40BitEncryption)); this->ap.addChoices("extract", p(&ArgParser::argEnc40Extract), true, yn_choices); this->ap.addChoices("annotate", p(&ArgParser::argEnc40Annotate), true, yn_choices); this->ap.addChoices("print", p(&ArgParser::argEnc40Print), true, yn_choices); this->ap.addChoices("modify", p(&ArgParser::argEnc40Modify), true, yn_choices); this->ap.registerOptionTable("128-bit encryption", b(&ArgParser::argEnd128BitEncryption)); this->ap.addBare("cleartext-metadata", b(&ArgParser::argEnc128CleartextMetadata)); this->ap.addBare("force-V4", b(&ArgParser::argEnc128ForceV4)); this->ap.addChoices("accessibility", p(&ArgParser::argEnc128Accessibility), true, yn_choices); this->ap.addChoices("extract", p(&ArgParser::argEnc128Extract), true, yn_choices); this->ap.addChoices("print", p(&ArgParser::argEnc128Print), true, print128_choices); this->ap.addChoices("assemble", p(&ArgParser::argEnc128Assemble), true, yn_choices); this->ap.addChoices("annotate", p(&ArgParser::argEnc128Annotate), true, yn_choices); this->ap.addChoices("form", p(&ArgParser::argEnc128Form), true, yn_choices); this->ap.addChoices("modify-other", p(&ArgParser::argEnc128ModifyOther), true, yn_choices); this->ap.addChoices("modify", p(&ArgParser::argEnc128Modify), true, modify128_choices); this->ap.addChoices("use-aes", p(&ArgParser::argEnc128UseAes), true, yn_choices); this->ap.registerOptionTable("256-bit encryption", b(&ArgParser::argEnd256BitEncryption)); this->ap.addBare("force-R5", b(&ArgParser::argEnc256ForceR5)); this->ap.addBare("allow-insecure", b(&ArgParser::argEnc256AllowInsecure)); this->ap.registerOptionTable("underlay/overlay", b(&ArgParser::argEndUnderlayOverlay)); this->ap.addPositional(p(&ArgParser::argUOPositional)); this->ap.addRequiredParameter("to", p(&ArgParser::argUOTo), "page-range"); this->ap.addRequiredParameter("from", p(&ArgParser::argUOFrom), "page-range"); this->ap.addRequiredParameter("repeat", p(&ArgParser::argUORepeat), "page-range"); this->ap.addRequiredParameter("password", p(&ArgParser::argUOPassword), "password"); this->ap.registerOptionTable("attachment", b(&ArgParser::argEndAttachment)); this->ap.addPositional(p(&ArgParser::argAttPositional)); this->ap.addBare("replace", b(&ArgParser::argAttReplace)); this->ap.addRequiredParameter("key", p(&ArgParser::argAttKey), "attachment-key"); this->ap.addRequiredParameter("filename", p(&ArgParser::argAttFilename), "filename"); this->ap.addRequiredParameter("creationdate", p(&ArgParser::argAttCreationdate), "creation-date"); this->ap.addRequiredParameter("moddate", p(&ArgParser::argAttModdate), "modification-date"); this->ap.addRequiredParameter("mimetype", p(&ArgParser::argAttMimetype), "mime/type"); this->ap.addRequiredParameter("description", p(&ArgParser::argAttDescription), "description"); this->ap.registerOptionTable("copy attachment", b(&ArgParser::argEndCopyAttachment)); this->ap.addPositional(p(&ArgParser::argCopyAttPositional)); this->ap.addRequiredParameter("prefix", p(&ArgParser::argCopyAttPrefix), "prefix"); this->ap.addRequiredParameter("password", p(&ArgParser::argCopyAttPassword), "password"); this->ap.selectOptionTable("256-bit encryption"); this->ap.copyFromOtherTable("cleartext-metadata", "128-bit encryption"); this->ap.copyFromOtherTable("accessibility", "128-bit encryption"); this->ap.copyFromOtherTable("extract", "128-bit encryption"); this->ap.copyFromOtherTable("print", "128-bit encryption"); this->ap.copyFromOtherTable("assemble", "128-bit encryption"); this->ap.copyFromOtherTable("annotate", "128-bit encryption"); this->ap.copyFromOtherTable("form", "128-bit encryption"); this->ap.copyFromOtherTable("modify-other", "128-bit encryption"); this->ap.copyFromOtherTable("modify", "128-bit encryption");