Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-01-30 | QPDFJob: use std::shared_ptr over PointerHolder where possible | Jay Berkenbilt | |
Also fix QPDFArgParser | |||
2022-01-30 | Add QUtil::make_shared_cstr | Jay Berkenbilt | |
Replace most of the calls to QUtil::copy_string with this instead. | |||
2022-01-30 | Allow optional fields in json "schema" checks | Jay Berkenbilt | |
2022-01-30 | JSONHandler: rework dictionary and array handlers | Jay Berkenbilt | |
2022-01-30 | Implement JSONHandler for recursively processing JSON | Jay Berkenbilt | |
2022-01-30 | Add JSON::parse | Jay Berkenbilt | |
2022-01-30 | Add JSON::isDictionary and JSON::isArray | Jay Berkenbilt | |
2022-01-30 | QPDFArgParser: support adding/printing help information | Jay Berkenbilt | |
2022-01-30 | QPDFArgParser: handle optional choices including help | Jay Berkenbilt | |
Handle optional choices in addition to required choices. Refactor the way help options are added to completion to make it work with optional help choices. | |||
2022-01-30 | Fix doc typos caught by m-holger -- thanks | Jay Berkenbilt | |
2022-01-30 | Add QPDFArgParser::copyFromOtherTable | Jay Berkenbilt | |
2022-01-30 | Expose QPDFArgParser::usage | Jay Berkenbilt | |
2022-01-30 | QPDFJob increment: move arg parsing into QPDFJob | Jay Berkenbilt | |
Move ArgParser from qpdf.cc into QPDFJob.cc. It still works with millions of public member variables, but now qpdf.cc is minimal and just calls stable library functions. | |||
2022-01-30 | QPDFJob: reorder functions, no other changes | Jay Berkenbilt | |
2022-01-30 | QPDFJob increment: static functions to member functions | Jay Berkenbilt | |
Convert remaining static functions that take QPDFJob& as a parameter to member functions. Utility functions that don't take QPDFJob& remain static functions and can probably just stay that way since the keep extra complexity out of QPDFJob.hh. | |||
2022-01-30 | QPDFJob increment: remove std::cout, std::cerr, whoami | Jay Berkenbilt | |
Remove remaining temporary duplication of hard-coded values and direct access to std::cout, std::cerr, and whoami in favor of parameters in QPDFJob. This moves a few more static methods into QPDFJob member functions. | |||
2022-01-30 | QPDFJob increment: get rid of exit, handle verbose | Jay Berkenbilt | |
Remove all calls to exit() from QPDFJob. Handle code that runs in verbose mode to enable it to make use of output streams and message prefix (whoami) from QPDFJob. This removes temporarily duplicated exit code logic and most access to whoami/std::cout outside of QPDFJob proper. | |||
2022-01-30 | QPDFJob increment: basic QPDFJob structure | Jay Berkenbilt | |
Move most of the methods called from qpdf.cc after argument parsing into QPDFJob. In this increment, enough QPDFJob API has been added to handle the branch of QPDFJob::run() that creates output with an appropriate division between qpdf.cc and QPDFJob. There are temporary bits of code to enable everything to compile and pass the test suite, including some duplication and hard-coded values. | |||
2022-01-30 | Implement QPDFArgParser based on ArgParser from qpdf.cc | Jay Berkenbilt | |
2022-01-30 | Add some doc comments for QPDFObjectHandle dictionary methods | m-holger | |
2022-01-30 | Fix doc typos | m-holger | |
2022-01-22 | Make a few whitespace fixes from last commit | m-holger | |
Commit by ejb@ql.org using m-holger as author so git annotate gives proper credit for changes. | |||
2022-01-22 | Add new convenience methods QPDFObjectHandle::isNameAndEquals, etc | m-holger | |
Add methods isNameAndEquals, isDictionaryOfType, isStreamOfType | |||
2021-12-29 | Add QUtil::file_can_be_opened | Jay Berkenbilt | |
2021-12-20 | Change names of qpdf_object_type_e enumerations | Jay Berkenbilt | |
They have to be ot_* rather than qpdf_ot_* for compatibility. * Different enumerated types are not assignment-compatible in C++, at least with strict compiler settings * While you can do `constexpr ot_xyz = ::qpdf_ot_xyz` in QPDFObject.hh to make QPDFObject::ot_xyz work, QPDFObject::object_type_e::ot_xyz will only work if the enumerated type names are the same. | |||
2021-12-19 | Further improvements to handling binary strings | Jay Berkenbilt | |
2021-12-18 | Remove unneeded paragraph from comments | Jay Berkenbilt | |
2021-12-17 | C API: simplify new error handling and improve documentation | Jay Berkenbilt | |
2021-12-17 | C-API expose QPDFObjectHandle::getTypeCode and getTypeName (fixes #597) | m-holger | |
2021-12-17 | C API: add several stream functions (fixes #596) | Jay Berkenbilt | |
2021-12-17 | Make object types available to C API | Jay Berkenbilt | |
2021-12-17 | Add Pl_Buffer::getMallocBuffer | Jay Berkenbilt | |
2021-12-16 | C API: add functions for working with pages (fixes #594) | Jay Berkenbilt | |
2021-12-16 | Change name of formal parameters from data to qpdf | Jay Berkenbilt | |
2021-12-10 | C API: expose functions for indirect objects (fixes #588) | Jay Berkenbilt | |
2021-12-10 | Expose QPDFObjectHandle::addTokenFilter (fixes #580) | Jay Berkenbilt | |
2021-12-10 | C API: overhaul error handling | Jay Berkenbilt | |
* Handle error conditions that occur when using the object handle interfaces. In the past, some exceptions were not correctly converted to errors or warnings. * Add more detailed information to qpdf-c.h * Make it possible to work more explicitly with uninitialized objects | |||
2021-12-10 | Use a specific error code for type warnings and clarify docs | Jay Berkenbilt | |
2021-12-09 | C API: qpdf_oh_is_initialized | Jay Berkenbilt | |
2021-12-09 | C API: qpdf_get_last_string_length | Jay Berkenbilt | |
2021-12-09 | Typos in comments | Jay Berkenbilt | |
2021-12-09 | Minor documentation updates | m-holger | |
2021-12-02 | C-API expose new_object as qpdf_oh_new_object | m-holger | |
2021-11-29 | Improve testing and error handling around operating before processing | Jay Berkenbilt | |
2021-11-19 | Ensure qpdf_oh handles returned by C-API functions are unique. | m-holger | |
Return new qpdf_oh from qpdf_oh_wrap_in_array when input is already an array. Update some doc comments in qpdf-c.h. | |||
2021-11-11 | First increment of improving handling of weak crypto (fixes #358) | Jay Berkenbilt | |
2021-11-04 | Add QIntC::range_check_subtract | Jay Berkenbilt | |
2021-11-04 | Check object ownership when adding | Jay Berkenbilt | |
When adding a QPDFObjectHandle to an array or dictionary, if possible, check if the new object belongs to the same QPDF. This makes it much easier to find incorrect code than waiting for the situation to be detected when the file is written. | |||
2021-11-03 | Make QPDF::findPage public (fixes #516) | Jay Berkenbilt | |
This was originally not public because I wanted to get rid fo the pages cache, but I recently realized there were deep reasons not to do that, and the author of pikepdf wanted this, so I decided to make it public. | |||
2021-11-03 | Detect recoverable but invalid zlib data streams (fixes #562) | Jay Berkenbilt | |