aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_json.cc
AgeCommit message (Collapse)Author
2024-02-16Refactor QPDF::writeJSONm-holger
2024-02-16Refactor QPDF::writeJSONStreamm-holger
Use QPDF_Stream::writeStreamJSON. Factor out the json_stream_data == qpdf_sj_file case.
2024-02-16Add new writeJSON methodsm-holger
Create an alternative to getJSON to allow an object handle to be written as JSON without the overhead of creating a JSON object.
2024-02-06Detect JSON object whose value is an indirect objectJay Berkenbilt
2024-02-04Handle parse error stream data (fixes #1123)Jay Berkenbilt
A parse error in stream data in which stream data contained a nested object would cause a crash because qpdf was not correctly updating its internal state. Rework the QPDF json reactor to not be sensitive to parse errors in this way.
2024-01-29Allow "n:/pdf-syntax" JSON syntax for dictionary keysm-holger
2023-12-21Convert scientific notation in JSON to fixed point (fixes #1079)Jay Berkenbilt
JSON accepts scientific notation, but PDF doesn't.
2023-12-21Add "n:/pdf-name" to qpdf JSON for binary names (fixes #1072)Jay Berkenbilt
2023-06-09Code tidy - Clang-Tidy rule modernize-use-overridem-holger
2023-05-27Code tidy - reflow comments and stringsm-holger
2023-05-21Rerun clang-formatJay Berkenbilt
2023-05-20Rerun format_code (after merging clang-tidy PR)Jay Berkenbilt
2023-05-20Remove redundant 'virtual' specifiersm-holger
2023-02-19Refactor removal of reserved objects in QPDF::JSONReactorm-holger
At the end of importing a JSON file, scan the object cache for reserved objects and replace with null objects.
2023-02-18Initialize QPDF::JSONReactor data membersm-holger
2023-02-18Move definition of QPDF::JSONReactor into QPDF_jsonm-holger
Allow access to private header files when defining data members.
2023-02-18Refactor setting of object descriptions in QPDF::JSONReactorm-holger
2022-09-21Replace calls to QUtil::int_to_string with std::to_stringm-holger
2022-08-06Fix parsing commentJay Berkenbilt
2022-08-01Add QPDF::getObject to replace getObjectByObjGen and getObjectByIDm-holger
For consistency with similar methods, e.g. replaceObject.
2022-07-31Provide a simpler QPDF::writeJSONJay Berkenbilt
2022-07-31Use calledgetallpages and pushedinheritedpageresourcesJay Berkenbilt
2022-07-31Change the output of --json to use "qpdf" instead of "objects"Jay Berkenbilt
2022-07-31Change --json-output formatJay Berkenbilt
from "qpdf-v2" to "qpdf": [..., ...]
2022-07-31Update docs and prepare QPDF::writeJSON for changesJay Berkenbilt
Add additional parameters that will be needed to call QPDF::writeJSON in partial mode.
2022-07-31Fix/clarify meaning of depth parameter to json write methodsJay Berkenbilt
2022-07-24QPDFObjGen : tidy QPDF private methodsm-holger
Change method signatures to use QPDFObjGen. Use QPDFObjGen methods where possible. Remove redundant QPDF::objGenToIndirect.
2022-06-06Code tidy: remove redundant variable in QPDF::writeJSONm-holger
2022-05-31Update documentation for qpdf JSON v2Jay Berkenbilt
2022-05-21Allow empty b: binary JSON stringsJay Berkenbilt
2022-05-21Format codeJay Berkenbilt
2022-05-21JSON: Fix large file supportJay Berkenbilt
2022-05-21Replace std::regex with validators for better performanceJay Berkenbilt
2022-05-20Exercise object description in testsJay Berkenbilt
2022-05-20Test --update-from-jsonJay Berkenbilt
2022-05-20Test (and fix) handling of dangling referencesJay Berkenbilt
2022-05-20Explicitly test ignoring unknown keys in JSON inputJay 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-20Support stream data -- not testedJay Berkenbilt
There are no automated tests yet, but committing work so far in preparation for some refactoring.
2022-05-20Parse objects; stream data is not yet handledJay Berkenbilt
2022-05-16Implement top-level qpdf json parsingJay Berkenbilt
2022-05-16Add scaffolding for QPDF JSON reactorJay Berkenbilt
2022-05-16Add --create-from-json and --update-from-json argumentsJay Berkenbilt
Also add stubs for top-level QPDF methods (createFromJSON, updateFromJSON)