aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
AgeCommit message (Collapse)Author
2017-08-22Spell checkJay Berkenbilt
2017-08-22Update references to README filesJay Berkenbilt
Most of the README files have been renamed. Refer to the new names.
2017-08-22Do memory checksJay Berkenbilt
Slightly improve memory cleanup in Pl_DCT Make it easier to test with valgrind
2017-08-22Limit token length during xref recoveryJay Berkenbilt
While scanning the file looking for objects, limit the length of tokens we allow. This prevents us from getting caught up in reading a file character by character while digging through large streams.
2017-08-22Fix compiler warnings for clang/mac OS XJay Berkenbilt
2017-08-22Fix logic error in recoveryJay Berkenbilt
A stray semicolon caused a condition to be incorrectly applied during stream length recovery.
2017-08-22Push QPDFWriter member variables into a nested classJay Berkenbilt
2017-08-22Push QPDF member variables into a nested classJay Berkenbilt
Pushing member variables into a nested class enables addition of new member variables without breaking binary compatibility.
2017-08-22Improve pclm parameter settingsJay Berkenbilt
2017-08-22Combine writePCLm with writeStandardJay Berkenbilt
Reduce code duplication
2017-08-22Combine PCLm header into writeHeaderJay Berkenbilt
2017-08-22Remove duplicated coverage casesJay Berkenbilt
Remove duplicated coverage cases from Sahil's code so existing test suite passes.
2017-08-22QPDFWriter: Add setPCLm() and writePCLm() methodsSahil Arora
* Add support for PCLm using setPCLm() and writePCLm() methods in QPDFWriter.hh and QPDFWriter.cc * Add a function writePCLmHeader() for PCLm header in QPDFWriter
2017-08-21Precheck streams by defaultJay Berkenbilt
There is no need for a --precheck-streams option. We can do the precheck without imposing any penalty, only re-encoding the stream if it fails the first time.
2017-08-21Enable finer grained control of stream decodingJay Berkenbilt
This commit adds several API methods that enable control over which types of filters QPDF will attempt to decode. It also adds support for /RunLengthDecode and /DCTDecode filters for both encoding and decoding.
2017-08-21Implement Pl_DCT pipelineJay Berkenbilt
Additional testing is added in later commits to be supported by additional changes in the library.
2017-08-19Implement Pl_RunLength pipelineJay Berkenbilt
2017-08-13Add page rotation (fixes #132)Jay Berkenbilt
2017-08-12Fix infinite loop in QPDFWriter (fixes #143)Jay Berkenbilt
2017-08-12Fix --newline-before-endstream option (fixes #133)Jay Berkenbilt
Add a newline unconditionally before endstream even if a newline was already written as part of the stream data.
2017-08-12Prevent a division by zero error (fixes #141)Jay Berkenbilt
Bad /W in an xref stream could cause a division by zero error. Now this is handled as a special case.
2017-08-12Pad encryption parameters that are too short (fixes #96)Jay Berkenbilt
2017-08-11Generate libqpdf.map from autoconfJay Berkenbilt
Rather than checking consistency of libqpdf.map, generate it.
2017-08-11Fix libqpdf.map and prevent future breakageJay Berkenbilt
The build now checks to make sure libqpdf.map has the right library version number in it.
2017-08-11Remove PCREJay Berkenbilt
2017-08-11Read xref table without PCREJay Berkenbilt
Also accept more errors than before.
2017-08-11Reconstruct xref without PCREJay Berkenbilt
2017-08-11Improve stream length recoveryJay Berkenbilt
Eliminate PCRE and find endobj not preceded by endstream. Be more lax about placement of endstream and endobj.
2017-08-11Find xref without PCREJay Berkenbilt
2017-08-11Find lindict without PCREJay Berkenbilt
2017-08-11Find starxref without PCREJay Berkenbilt
2017-08-11Find header without PCREJay Berkenbilt
2017-08-11Implement findFirst and findLast in InputSourceJay Berkenbilt
Preparing to refactor some pattern searching code to use these instead of their own memchr loops. This should simplify the code that replaces PCRE.
2017-08-11Allow QPDFTokenizer::readToken to return bad tokensJay Berkenbilt
Sometimes we want to ignore bad tokens rather than having them throw an exception. A coverage case is commented out here and added in a later commit.
2017-08-05QUtil::strcasecmpJay Berkenbilt
2017-07-30Include missing header in QPDFTokenizer.cc (fixes #125)Pranjal Bhor
Required for strtol()
2017-07-30Allow reading command-line args from files (fixes #16)Jay Berkenbilt
2017-07-30Detect input file = output file (fixes #29)Jay Berkenbilt
2017-07-30Catch more exceptions while resolving objectsJay Berkenbilt
2017-07-30When recover stream length, indicate the length (fixes #44)Jay Berkenbilt
2017-07-29Add newline-before-endstream option (fixes #103)Jay Berkenbilt
2017-07-29Handle zlib data errors better (fixes #106)Jay Berkenbilt
2017-07-29Better recovery of bad stream start (fixes #104)Jay Berkenbilt
2017-07-29Better handle split content streams (fixes #73)Jay Berkenbilt
When parsing content streams, allow content to be split arbitrarily across stream boundaries.
2017-07-29Fix exception catchJay Berkenbilt
2017-07-29Use 1.2 as the version if we can't read it from the headerJay Berkenbilt
The code was using 1.0, but we use /FlateDecode, which didn't appear until 1.2.
2017-07-29Add option to preserve unreferenced objectsJay Berkenbilt
2017-07-29Explicitly check root dictionary typeJay Berkenbilt
Very badly corrupted files may not have a retrievable root dictionary. Handle that as a special case so that a more helpful error message can be provided.
2017-07-28Add precheck streams capabilityJay Berkenbilt
When requested, QPDFWriter will do more aggress prechecking of streams to make sure it can actually succeed in decoding them before attempting to do so. This will allow preservation of raw data even when the raw data is corrupted relative to the specified filters.
2017-07-28Convert many more errors to warningsJay Berkenbilt