aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFJob_json.cc
AgeCommit message (Collapse)Author
2024-01-15Remove extraneous blank linesJay Berkenbilt
2024-01-15Tweak Handlers::json_handlersm-holger
Use std::vector instead of list and move shared pointers
2024-01-15Tweak Handlers::beginUnderOverlay and beginPagesm-holger
2024-01-11Allow repetition of overlay/underlayJay Berkenbilt
This is just QPDFJob wiring.
2024-01-11QPDFJob JSON: allow single item in place of arrayJay Berkenbilt
2024-01-10Handle pages/under/overlay JSON file in beginJay Berkenbilt
...since they have to be handled before other options. It was working because, in both cases, `file` was alphabetically before the other keys, but this implementation gives a stronger guarantee.
2024-01-10Allow --file with --overlay and --underlayJay Berkenbilt
2024-01-10Allow --file and --range with --pagesJay Berkenbilt
Accept --file and --range as named parameters in additional to allowing positional arguments. This is in preparation for adding additional flags.
2024-01-05Wiring for --set-page-labels: manual (non-bisectable commit)Jay Berkenbilt
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.
2023-12-23Add --user-password, --owner-password, --bits to --encryptJay Berkenbilt
Add the command-line arguments. They don't do anything yet.
2023-10-07Spell checkJay Berkenbilt
2023-06-09Code tidy - Clang-Tidy rule modernize-use-default-member-initm-holger
2023-06-02Code tidy - reflow comments and stringsm-holger
2023-05-21Rerun clang-formatJay Berkenbilt
2023-05-21Globally replace 'this->m->' with 'm->'m-holger
Using search and replace.
2022-07-31Fix --json-help to take a version parameterJay Berkenbilt
2022-05-20Major rework -- see long commentsJay Berkenbilt
* Replace --create-from-json=file with --json-input, which causes the regular input to be treated as json. * Eliminate --to-json * In --json=2, bring back "objects" and eliminate "objectinfo". Stream data is never present. * In --json-output=2, write "qpdf-v2" with "objects" and include stream data.
2022-05-16Add --create-from-json and --update-from-json argumentsJay Berkenbilt
Also add stubs for top-level QPDF methods (createFromJSON, updateFromJSON)
2022-04-30Formatting: remove space in range-style for loopsJay Berkenbilt
Change .clang-format and commit automated changes from a fresh run of format-code
2022-04-24QPDFJob json: make removeAttachment take an array (fixes #693)Jay Berkenbilt
2022-04-04Programmatically apply new formatting to codeJay Berkenbilt
Run this: for i in **/*.cc **/*.c **/*.h **/*.hh; do clang-format < $i >| $i.new && mv $i.new $i done
2022-02-04Add a blank line after the first header included in each sourceJay Berkenbilt
2022-02-01QPDFJob: documentationJay Berkenbilt
2022-02-01QPDFJob json: make bare arguments expect the empty stringJay Berkenbilt
Changing from bool requiring true to string requiring the empty string is more consistent with the CLI and makes it possible to add an optional parameter or choices later without breaking compatibility.
2022-02-01QPDFJob json: flatten json structureJay Berkenbilt
Flatten everything to make it easier to map command-line flags to json. The old structure was an illusion anyway because there was no mechanism to enforce that things were in the right place. This also helps with future flexibility.
2022-01-31QPDFJob: add test casesJay Berkenbilt
2022-01-31Change filename or path to file in json and QPDFJobJay Berkenbilt
Use "file" consistently for specifying a file path. We use "filename" when adding attachments for a completely different purpose.
2022-01-31QPDFJob: fix logic errors in handling arraysJay Berkenbilt
The code was assuming everything was happening inside dictionaries. Instead, make the dictionary key handler creatino explicit only when iterating through dictionary keys.
2022-01-31QPDFJob: rename function that returns job schemaJay Berkenbilt
2022-01-31QPDFJob: partial mode for initializeFromJsonJay Berkenbilt
2022-01-31QPDFJob_json: implement handlers for pagesJay Berkenbilt
2022-01-31QDPFJob: incorporate change to JSONHandler for array start functionJay Berkenbilt
2022-01-31QPDFJob_json: implement handlers except pagesJay Berkenbilt
2022-01-31QPDFJob: incorporate change to JSONHandler for dict start functionJay Berkenbilt
2022-01-31QPDFJob: autogenerate json init and declarationsJay Berkenbilt
Now still have to go through and implement the handlers.
2022-01-31QPDFJob_json: add code to register handlersJay Berkenbilt
2022-01-31QPDFJob: generate json decl and init file skeletonsJay Berkenbilt
2022-01-31QPDFJob: add checkConfiguration to ConfigJay Berkenbilt
2022-01-31QPDFJob: prepare for automatically generated json handlersJay Berkenbilt
2022-01-30QPDFJob: move placeholder json to a separate source fileJay Berkenbilt