Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-02-05 | Add new QPDFObjectHandle::getValueAs... accessors | m-holger | |
2022-02-04 | PointerHolder: deprecate getPointer() and getRefcount() | Jay Berkenbilt | |
Use get() and use_count() instead. Add #define NO_POINTERHOLDER_DEPRECATION to remove deprecation markers for these only. This commit also removes all deprecated PointerHolder API calls from qpdf's code except in PointerHolder's test suite, which must continue to test the deprecated APIs. | |||
2022-02-04 | C-API add two binary UTF8 funtions | m-holger | |
add qpdf_oh_new_binary_unicode_string and qpdf_oh_get_binary_utf8_value | |||
2022-02-04 | Fix --check-linearization of non-linearized files (fixes #615) | m-holger | |
2022-02-01 | QPDFJob: let initializeFromArgv just take argv, not argc | Jay Berkenbilt | |
Let argv be a null-terminated array. There is already code that assumes this, and it makes it easier to construct the arguments. | |||
2022-02-01 | Make QPDFArgParser accept const argv | Jay Berkenbilt | |
This makes it much more convention to use the initializeFromArgv functions since you can use string literals. | |||
2022-02-01 | Add qpdfjob-c.h -- simple C API around parts of QPDFJob | Jay Berkenbilt | |
2022-02-01 | Move QTC::TC for qpdf to QPDFJob | Jay Berkenbilt | |
All the coverage cases that used to be in qpdf.cc are now in QPDFJob*.cc. It doesn't really matter, but better to follow the convention of starting with the class that includes the coverage call. | |||
2022-02-01 | Move more code from qpdf.cc into QPDFJob | Jay Berkenbilt | |
2022-02-01 | QPDFJob json: make bare arguments expect the empty string | Jay 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-01 | QPDFJob json: flatten json structure | Jay 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-31 | QPDFJob: add test cases | Jay Berkenbilt | |
2022-01-31 | Add optional version to --json | Jay Berkenbilt | |
2022-01-31 | Change filename or path to file in json and QPDFJob | Jay Berkenbilt | |
Use "file" consistently for specifying a file path. We use "filename" when adding attachments for a completely different purpose. | |||
2022-01-30 | More editorial changes from m-holger + spell check | Jay Berkenbilt | |
2022-01-30 | Improve top-level help information | Jay Berkenbilt | |
2022-01-30 | Use QPDFUsage exception for cli, json, and QPDFJob errors | Jay Berkenbilt | |
2022-01-30 | QPDFJob: move more top-level trivial handlers into config | Jay Berkenbilt | |
2022-01-30 | Add QPDFJob::ConfigError exception | Jay Berkenbilt | |
2022-01-30 | QPDFJob: allocate QPDFArgParser on stack | Jay Berkenbilt | |
The previous commits have removed all references to memory from QPDFArgParser from QPDFJob. This commit removes the constraint that QPDFArgParser remain in scope. This is a prerequisite to allowing JSON as an alternative way to initialize QPDFJob and to initialize it directly using a public API. | |||
2022-01-30 | Add missing \f support for JSON string encoder | Jay Berkenbilt | |
2022-01-30 | Document how to add a command-line argument | Jay Berkenbilt | |
2022-01-30 | Minor code cleanup | 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 | Remove qpdf.cc version check | Jay Berkenbilt | |
Remove comparison of qpdf CLI version with library. With almost all the functionality moving into the library, this check is no longer meaningful. | |||
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 | Prefix program name before exception message in qpdf CLI | Jay Berkenbilt | |
2022-01-30 | Refactor arg parsing in qpdf.cc to use QPDFArgParser | Jay Berkenbilt | |
2022-01-30 | Implement QPDFArgParser based on ArgParser from qpdf.cc | Jay Berkenbilt | |
2022-01-27 | Fix QPDFObjectHandle::isOrHasName | m-holger | |
Ensure isOrHasName returns true if object is an array and the name is present anywhere in the array. | |||
2022-01-27 | Allow testing for subtype without specifying type in isDictionaryOfType etc | m-holger | |
Accept empty string as type parameter in QPDFObjectHandle::isDictionaryOfType and isStreamOfType to allow for dictionaries with optional type. | |||
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 | |||
2022-01-11 | Add missing characters from PDF doc encoding (fixes #606) | Jay Berkenbilt | |
2022-01-06 | Move bash/zsh completion helpers to libtests/arg_parser | Jay Berkenbilt | |
2022-01-06 | Move filter-completion.pl to libtests/arg_parser | Jay Berkenbilt | |
2021-12-29 | Add QUtil::file_can_be_opened | Jay Berkenbilt | |
2021-12-29 | Refactor arg parsing to allow help option with parameter | Jay Berkenbilt | |
2021-12-20 | Prepare 10.5.0 release | 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-20 | test_driver: split runtest into separate functions | Jay Berkenbilt | |
Too bad about git annotate but it was pretty crazy to have all those test cases together like that. | |||
2021-12-19 | Further improvements to handling binary strings | Jay Berkenbilt | |
2021-12-18 | Fix LGTM alerts | 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-16 | Output C test n done at the end of each qpdf-ctest | Jay Berkenbilt | |
2021-12-16 | C API: add functions for working with pages (fixes #594) | Jay Berkenbilt | |
2021-12-16 | qpdf-ctest: outfile2 -> xarg | Jay Berkenbilt | |