aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
AgeCommit message (Collapse)Author
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
2018-02-19Use inline image token type in tokenizer filterJay Berkenbilt
2018-02-19Inline image token typeJay Berkenbilt
2018-02-19Push QPDFTokenizer members into a nested structureJay Berkenbilt
This is for protection against future ABI breaking changes.
2018-02-19Lexer enhancements: EOF, comment, spaceJay Berkenbilt
Significant enhancements to the lexer to improve EOF handling and to support comments and spaces as tokens. Various other minor issues were fixed as well.
2018-02-19Add option to save pass 1 of lineariziationJay Berkenbilt
This is useful only for debugging the linearization code.
2018-02-05Prepare 7.1.1 releaserelease-qpdf-7.1.1Jay Berkenbilt
2018-02-05Fix linearization for files with nonstandard ID lengthJay Berkenbilt
2018-02-04Fix setLineBuf for bsd (fixes #177)Jay Berkenbilt
Use 0 instead of NULL in a cast.
2018-02-04Remove use of std::abs (fixes #172)Jay Berkenbilt
Different compilers want different choices of headers for std::abs. It's easier to just to not use it.
2018-02-04Fix indentationJay Berkenbilt
2018-02-04Fix offset in error messageJay Berkenbilt
2018-01-29Pl_QPDFTokenizer: Use unsigned_char_pointer instead of copyJay Berkenbilt
2018-01-29Minor fixes to tokenizerJay Berkenbilt
2018-01-15Update version numbers for 7.1.0release-qpdf-7.1.0Jay Berkenbilt
2018-01-15Fixes for clangJay Berkenbilt
2018-01-14Allow raw encryption key to be specifiedJay Berkenbilt
Add options to enable the raw encryption key to be directly shown or specified. Thanks to Didier Stevens <didier.stevens@gmail.com> for the idea and contribution of one implementation of this idea.
2018-01-14Add QUtil::hex_decodeJay Berkenbilt
2018-01-14Allow trailing . in numeric token (fixes #165)Jay Berkenbilt
2018-01-14Support TIFF Predictor (fixes #171)Jay Berkenbilt
2018-01-14Add Pl_TIFFPredictorJay Berkenbilt
2018-01-14Add signed support to BitStream and BitWriterJay Berkenbilt
2018-01-14Minor fixes to Pl_PNGFilterJay Berkenbilt
Fix comment, remove restriction that doesn't actually matter.
2018-01-14Use better error for getStreamData failureJay Berkenbilt
If the stream isn't filterable but we call getStreamData, throw a regular exception instead of a logic error so that normal error handling and reporting mechanisms will be used.
2017-12-26Add tests for new PNG filtersJay Berkenbilt
2017-12-25Correct errors in PNG filters and make use from libraryJay Berkenbilt
2017-12-25Initial implementation of other PNG decode filtersCasey Rojas
Initial implementation provided by Casey Rojas <crojas@infotechfl.com> Some problems are fixed in a subsequent commit.
2017-09-16Prepare 7.0.0 releaserelease-qpdf-7.0.0Jay Berkenbilt
2017-09-16Fix test failure on MSVCJay Berkenbilt
2017-09-16Spell checkJay Berkenbilt
2017-09-16Fix Windows compilation errorsJay Berkenbilt
2017-09-12Improve message for stream decoding errorJay Berkenbilt
Tweak the message so that we inform the user that we are mitigating data loss.
2017-09-12Update C API with new QPDFWriter methodsJay Berkenbilt
2017-09-08Pl_DCT: Use custom source and destination managers (fixes #153)Jay Berkenbilt
Avoid calling jpeg_mem_src and jpeg_mem_dest. The custom destination manager writes to the pipeline in smaller chunks to avoid having the whole image in memory at once. The source manager works directly with the Buffer object. Using customer managers avoids use of memory source and destination managers, which are not present in older versions of libjpeg still in use by some Linux distributions.
2017-08-31PNGFilter: Better range checking for columnsJay Berkenbilt
2017-08-29Replace all atoi calls with QUtil::string_to_intJay Berkenbilt
The latter catches underflow/overflow.
2017-08-29Pl_PNGFilter: disallow columns = 0Jay Berkenbilt
2017-08-29Detect integer overflow/underflowJay Berkenbilt
2017-08-29Fix memory leak with bad jpeg dataJay Berkenbilt