Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-05-07 | Top-level json: write incrementally | Jay Berkenbilt | |
This commit just changes the order in which fields are written to the json without changing their content. All the json files in the test suite were modified with this script to ensure that we didn't get any changes other than ordering. ---------- #!/usr/bin/env python3 import json import sys def json_dumps(data): return json.dumps(data, ensure_ascii=False, indent=2, separators=(',', ': ')) for filename in sys.argv[1:]: with open(filename, 'r') as f: data = json.loads(f.read()) newdata = {} for i in ('version', 'parameters', 'pages', 'pagelabels', 'acroform', 'attachments', 'encrypt', 'outlines', 'objects', 'objectinfo'): if i in data: newdata[i] = data[i] print(json_dumps(newdata)) ---------- | |||
2022-05-07 | Test json against schema only on demand | Jay Berkenbilt | |
Testing json against schema requires an in-memory copy, so do it only when requested by the test suite. | |||
2022-05-07 | Add next to Pl_String and fix comments | Jay Berkenbilt | |
2022-05-07 | Add --test-json-schema command-line option | Jay Berkenbilt | |
2022-05-07 | QPDFJob: have doJSON write to a pipeline | Jay Berkenbilt | |
2022-05-07 | JSON: add blob type that generates base64-encoded binary data | Jay Berkenbilt | |
2022-05-04 | Change JSON parser to parse from an InputSource | Jay Berkenbilt | |
2022-05-04 | Add new FileInputSource constructors | Jay Berkenbilt | |
2022-05-04 | JSON: add write methods and implement unparse() in terms of those | Jay Berkenbilt | |
2022-05-04 | Make "objects" and "pages" consistent in JSON output | Jay Berkenbilt | |
2022-05-04 | Don't call pushInheritedAttributesToPage in json mode | Jay Berkenbilt | |
We used to have to do that, but for quite some time, the code that gets images has no longer required it. | |||
2022-05-04 | Add new Pl_String Pipeline | Jay Berkenbilt | |
2022-05-04 | Add new Pl_OStream Pipeline | Jay Berkenbilt | |
2022-05-04 | Make use of the new Pipeline methods in some places | Jay Berkenbilt | |
2022-05-04 | Add new Pipeline convenience methods | Jay Berkenbilt | |
2022-05-04 | Make Pipeline::write take an unsigned char const* (API change) | Jay Berkenbilt | |
2022-05-04 | Make assert handling less error-prone | Jay Berkenbilt | |
Prevent my future self or other contributors from using assert in tests and then having that assert not do anything because of the NDEBUG macro. | |||
2022-05-04 | Remove remaining incorrect assert calls from implementation | Jay Berkenbilt | |
2022-05-04 | Add internal Pl_Base64 | Jay Berkenbilt | |
Bidirectional base64; will be used by JSON v2. | |||
2022-05-03 | Move generate_auto_job to the top-level CMakeLists.txt | Jay Berkenbilt | |
2022-05-02 | Add reactors to the JSON parser | Jay Berkenbilt | |
2022-05-01 | Limit parser depth for json parser | Jay Berkenbilt | |
2022-05-01 | Spell check | Jay Berkenbilt | |
2022-04-30 | Mark weak encryption with API changes (fixes #576) | Jay Berkenbilt | |
2022-04-30 | Remove deprecated (pre-8.4.0) encryption APIs | Jay Berkenbilt | |
2022-04-30 | Using insecure crytpo from the CLI is now an error by default | Jay Berkenbilt | |
2022-04-30 | Add comments around non-security-related uses of MD5 | Jay Berkenbilt | |
2022-04-30 | Revert "Remove QPDFObjectHandle::replaceOrRemoveKey" | Jay Berkenbilt | |
This reverts commit dc059560e73e0b373a6e54e71b07e3af4b692cb4. I changed my mind. There's no harm in leaving it deprecated for a release cycle. | |||
2022-04-30 | Remove QPDFObjectHandle::replaceOrRemoveKey | Jay Berkenbilt | |
See ChangeLog for rationale for not deprecating it as originally planned. | |||
2022-04-30 | Code clean up: use range-style for loops wherever possible | Jay Berkenbilt | |
Where not possible, use "auto" to get the iterator type. Editorial note: I have avoid this change for a long time because of not wanting to make gratuitous changes to version history, which can obscure when certain changes were made, but with having recently touched every single file to apply automatic code formatting and with making several broad changes to the API, I decided it was time to take the plunge and get rid of the older (pre-C++11) verbose iterator syntax. The new code is just easier to read and understand, and in many cases, it will be more effecient as fewer temporary copies are being made. m-holger, if you're reading, you can see that I've finally come around. :-) | |||
2022-04-30 | Formatting: remove space in range-style for loops | Jay Berkenbilt | |
Change .clang-format and commit automated changes from a fresh run of format-code | |||
2022-04-30 | Use fluent appendItem | Jay Berkenbilt | |
2022-04-30 | Use fluent replaceKey | Jay Berkenbilt | |
2022-04-30 | Use replaceKeyAndGet in a few places in existing code | Jay Berkenbilt | |
2022-04-30 | Add new QPDFObjectHandle methods for more fluent programming | Jay Berkenbilt | |
2022-04-24 | QPDFJob json: make removeAttachment take an array (fixes #693) | Jay Berkenbilt | |
2022-04-24 | Fix build logic around generate_auto_job | Jay Berkenbilt | |
It was being run at configuration time, not build time. | |||
2022-04-24 | Fix some bugs around null values in dictionaries | Jay Berkenbilt | |
Make it so that a key with a null value is always treated as not being present. This was inconsistent before. | |||
2022-04-24 | Deprecate replaceOrRemoveKey -- it's the same as replaceKey | Jay Berkenbilt | |
2022-04-24 | Have dictionary/streams mutators take const& where possible | Jay Berkenbilt | |
2022-04-24 | Add new QPDF::warn that takes most of QPDFExc's arguments | Jay Berkenbilt | |
2022-04-24 | Expose QUtil::get_next_utf8_codepoint | Jay Berkenbilt | |
2022-04-24 | Replace switch statements with static map initializers | Jay Berkenbilt | |
Character transcoding from Unicode to single-byte characters used hard-coded switch statements because the code predated our adoption of C++11. Now we have thread-safe, static initialization of map literals, so use that instead. | |||
2022-04-18 | QPDFJob: pass capture output streams through to underlying QPDF | Jay Berkenbilt | |
2022-04-16 | Use anonymous namespaces for file-private classes | Jay Berkenbilt | |
2022-04-16 | Remove deprecated name/number tree constructors | Jay Berkenbilt | |
Remove the name/number tree object helper constructors that don't take a QPDF&. | |||
2022-04-16 | Remove QPDFAcroFormDocumentHelper::copyFieldsFromForeignPage | Jay Berkenbilt | |
2022-04-16 | Change default --json from 1 to latest | Jay Berkenbilt | |
2022-04-16 | Use = default and = delete where possible in classes | Jay Berkenbilt | |
2022-04-16 | Make ABI-breaking changes that don't modify API at all | Jay Berkenbilt | |
* Merge overloaded functions by adding default values * Remove non-const methods that are identical to const methods |