aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
AgeCommit message (Collapse)Author
2018-08-05ClosedFileInputSource: add method to keep file openJay Berkenbilt
During periods of intensive operation on a specific file, this method can reduce the overhead of repeated open/close operations.
2018-06-23Prepare 8.1.0 releaserelease-qpdf-8.1.0Jay Berkenbilt
2018-06-23Bug fix: honor encryption key length with R=3 (fixes #212)Jay Berkenbilt
2018-06-22Add progress reporting for QPDFWriter (fixes #200)Jay Berkenbilt
2018-06-22Add method to get count of objects in QPDFJay Berkenbilt
2018-06-22Correct incorrect commentJay Berkenbilt
2018-06-22Add ClosedFileInputSourceJay Berkenbilt
ClosedFileInputSource is an input source that keeps the file closed when not reading it.
2018-06-22Don't prune resource dictionaries on errors or by requestJay Berkenbilt
If we are unable to filter a page's content streams, don't attempt to remove objects from the page's resource dictionary. Also provide a command line option to suppress resource removal in case we ever need this as a workaround for some bug or broken PDF files.
2018-06-22Treat content stream parsing errors as an error, not a warningJay Berkenbilt
If parsing content streams is treated as a warning, there is no way for a caller to know if a parsing operation has failed. This is very dangerous and will likely result in data loss when token filters are parser callbacks are in use.
2018-06-22When splitting files, remove unreferenced objects (fixes #203)Jay Berkenbilt
2018-06-22Fix QPDFObjectHandle::shallowCopyJay Berkenbilt
It's not really a shallow copy. It just doesn't cross indirect object boundaries. The old implementation had a bug that would cause multiple shallow copies of the same object to share memory, which was not the intention.
2018-06-21Allow setting a form field's valueJay Berkenbilt
2018-06-21Better support for creating Unicode stringsJay Berkenbilt
2018-06-21QUtil::toUTF16Jay Berkenbilt
2018-06-21Implement helper class for interactive formsJay Berkenbilt
2018-06-21Add QPDFPageDocumentHelper and QPDFPageObjectHelperJay Berkenbilt
This is the beginning of higher-level API support using helper classes. The goal is to be able to add more helpers without continuing to pollute QPDF's and QPDFObjectHandle's public interfaces.
2018-06-21Add QPDFObjectHandle::Rectangle typeJay Berkenbilt
Provide a convenient way of accessing rectangles.
2018-05-12newline before endstream fix for object streams (fixes #205)Jay Berkenbilt
2018-05-05Fix small logic error in Token construct (fixes #206)Jay Berkenbilt
The special case around name token was not reachable. This would only affect constructors of name tokens that were represented in non-canonical form such as with a hex substitution for a printable character. The error was harmless but still a bug.
2018-04-15Limit depth of nesting in direct objects (fixes #202)Jay Berkenbilt
This fixes CVE-2018-9918.
2018-03-06Prepare 8.0.2 releaserelease-qpdf-8.0.2Jay Berkenbilt
2018-03-06Properly handle pages with no contents (fixes #194)Jay Berkenbilt
Remove calls to assertPageObject(). All cases in the library that called assertPageObject() work fine if you don't call assertPageObject() because nothing assumes anything that was being checked by that call. Removing the calls enables more files to be successfully processed.
2018-03-06Pl_Buffer starts in a ready stateJay Berkenbilt
2018-03-05Treat loop in xref tables as damage (fixes #192)Jay Berkenbilt
Prior to this fix, if there was a loop detected in following /Prev pointers in xref streams/tables, it would cause qpdf to lose data. Note that this condition causes many PDF readers to hang or fail.
2018-03-04Prepare 8.0.1 releaserelease-qpdf-8.0.1Jay Berkenbilt
2018-03-03Ignore zlib data check errors (fixes #191)Jay Berkenbilt
2018-02-25Release 8.0.0release-qpdf-8.0.0Jay Berkenbilt
2018-02-258.0.rc3release-qpdf-8.0.rc3Jay Berkenbilt
2018-02-258.0.rc2release-qpdf-8.0.rc2Jay Berkenbilt
2018-02-25Update version to 8.0.rc1release-qpdf-8.0.rc1Jay Berkenbilt
This is for testing the release process, particularly as it pertains to AppImage creation.
2018-02-21Bump version number and sonameJay Berkenbilt
Bump to an alpha release. This version is not being widely released but is being used to push the new shared library version through the debian packaging system and to test out github releases.
2018-02-19Properly handle strings with PDF Doc Encoding (fixes #179)Jay Berkenbilt
The QPDF_String::getUTF8Val() method was not treating strings that weren't explicitly Unicode as PDF Doc Encoded. This only affects characters in the range 0x80 through 0xa0.
2018-02-19Add C API for checking PDF filesJay Berkenbilt
2018-02-19More robust handling of type errorsJay Berkenbilt
Give objects descriptions and context so it is possible to issue warnings instead of fatal errors for attempts to access objects of the wrong type.
2018-02-19Replace "file position" with "offset" in error messagesJay Berkenbilt
Sometimes it's an offset in an object stream or a content stream, so file position is confusing in some cases.
2018-02-19Include omitted object description in error messageJay Berkenbilt
2018-02-19Include filename in object stream parse errorJay Berkenbilt
2018-02-19Push members of QPDFObjectHandle into a Members objectJay Berkenbilt
As in other cases, this is to enable adding new member variables in the future without breaking ABI compatibility.
2018-02-19Simplify TokenFilter interfaceJay Berkenbilt
Expose Pl_QPDFTokenizer, and have it do more of the work of managing the token filter's pipeline.
2018-02-19Move Pl_QPDFTokenizer to public interfaceJay Berkenbilt
2018-02-19Add additional interface for filtering page contentsJay Berkenbilt
2018-02-19Clean up commentJay Berkenbilt
2018-02-19Detect and report bad tokens in content normalizationJay Berkenbilt
2018-02-19Implement TokenFilter and refactor Pl_QPDFTokenizerJay Berkenbilt
Implement a TokenFilter class and refactor Pl_QPDFTokenizer to use a TokenFilter class called ContentNormalizer. Pl_QPDFTokenizer is now a general filter that passes data through a TokenFilter.
2018-02-19Add coalesce contents capabilityJay Berkenbilt
2018-02-19Bug fix: content normalizer should not add trailing newlineJay Berkenbilt
Adding a trailing newline in content normalization damages files whose contents are split across streams in the middle of tokens. Let QPDFWriter add the newline with the indicator to ignore the newline, which it already does. This changes the way some qdf files look.
2018-02-19Refactor parseContentStreamJay Berkenbilt
2018-02-19Remove redundant methodJay Berkenbilt
Remove a redundant method that was equal to another one with additional arguments. This breaks binary compatibility, but there are other ABI breaking changes in the upcoming release, so now is the time to do it.
2018-02-19Use inline image token in content parserJay Berkenbilt
2018-02-19Use space tokens in tokenizer filterJay Berkenbilt