aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
AgeCommit message (Collapse)Author
2021-11-04Fix bug in merging resources /DR from foreign AcroForm (fixes #548)Jay Berkenbilt
When making resources indirect in from_dr, the code was using the wrong owning QPDF, forgetting that from_dr had already been copied using CopyForeignObject.
2021-11-04Check object ownership when addingJay 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-03Make 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-03Detect recoverable but invalid zlib data streams (fixes #562)Jay Berkenbilt
2021-09-10Fix QPDFEFStreamObjectHelper::{get,set}SubtypeFredrik Fornwall
The /Subtype entry that specifies the mime type of an embedded file is inside the embedded file stream dictionary directly, not it in the parameter dictionary. See Table 45 and 46 in the PDF 1.7 specification: https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf#page=112
2021-05-09Performance fix on preserveObjectStreamsJay Berkenbilt
2021-05-08Prepare 10.3.2 releaserelease-qpdf-10.3.2Jay Berkenbilt
2021-05-08Exclude unreferenced objects in object streams (fixes #520)Jay Berkenbilt
2021-04-29libqpdf/Pl_AES_PDF.cc: remove duplicated if branchZdenek Dohnal
Check for this->encrypt seems to be moved to plugged crypto implementations, so it can be removed from Pl_AES_PDF.cc.
2021-04-18Fix timezone portability issue (fixes #515)Jay Berkenbilt
2021-04-05QPDF::addPage*: handle duplicate pages more robustlyJay Berkenbilt
2021-04-05Fix loop detection in NNTreeJay Berkenbilt
2021-04-03Move ABI comment to the right placeJay Berkenbilt
2021-03-22Remove some assertions that are not necessarily true (fixes #514)Jay Berkenbilt
Operations that add the same object to multiple places in the pages tree are throwing exceptions and then later causing assertion failures. The assert calls shouldn't be there.
2021-03-11Prepare 10.3.1 releaserelease-qpdf-10.3.1Jay Berkenbilt
2021-03-11Allow /DR to be direct in /AcroFormJay Berkenbilt
Also handle direct annotation, though this is much less likely.
2021-03-05Prepare 10.3.0 releaserelease-qpdf-10.3.0Jay Berkenbilt
2021-03-05QPDFAcroFormDocumentHelper: add missing analyze callsJay Berkenbilt
2021-03-04Revert non-binary-compatible handleWarning change -- see TODO (ABI)Jay Berkenbilt
2021-03-04Don't use handleWarning, which is being revertedJay Berkenbilt
2021-03-04Major rework of handling form fields when copying pages (fixes #509)Jay Berkenbilt
2021-03-04When resolving font from /DR, copy it into resourcesJay Berkenbilt
2021-03-04Add QPDFMatrix::operator==Jay Berkenbilt
2021-03-04Check for reserved after dereferenceJay Berkenbilt
2021-03-04Add optional conflict detection to mergeResourcesJay Berkenbilt
Also improve behavior around direct vs. indirect resources.
2021-03-03Remove unreferenced: ignore names that are not Fonts or XObjectsJay Berkenbilt
Converted ResourceFinder to ParserCallbacks so we can better detect the name that precedes various operators and use the operators to sort the names into resource types. This enables us to be smarter about detecting unreferenced resources in pages and also sets the stage for reconciling differences in /DR across documents.
2021-03-03Enhancements to ParserCallbacksJay Berkenbilt
2021-03-03Add QPDF::numWarningsJay Berkenbilt
2021-03-03Create ResourceFinder from NameWatcher in QPDFPageObjectHelperJay Berkenbilt
2021-03-03Fix typos in coverage casesJay Berkenbilt
2021-03-03Fix behavior for finding /Q, /DA, and /DR for form fieldsJay Berkenbilt
If not found in the field hierarchy, /Q and /DA are supposed to be looked up in the document-level form dictionary. /DR is supposed to only come from the document dictionary.
2021-02-25Have QPDFObjectHandle notice when replaceObject was calledJay Berkenbilt
This results in a performance penalty of 1% to 2% when replaceObject and swapObjects are never called and a somewhat larger penalty if they are called, but it's worth it to avoid very confusing behavior as discussed in depth in qpdf#507.
2021-02-25Always call dereference() before querying obj pointerJay Berkenbilt
2021-02-23Prepare 10.2.0 releaserelease-qpdf-10.2.0Jay Berkenbilt
2021-02-23Spell checkJay Berkenbilt
2021-02-23Remove warning that gives false positives in some normal casesJay Berkenbilt
2021-02-23Keep only referenced form fields in --pagesJay Berkenbilt
2021-02-23Preserve form fields when splitting pages (fixes #340)Jay Berkenbilt
2021-02-23Add methods for copying form fieldsJay Berkenbilt
2021-02-23Add new placeFormXObject that takes a matrix referenceJay Berkenbilt
2021-02-23Add copyAnnotations, use with overlay/underlay (fixes #395)Jay Berkenbilt
2021-02-22Change from QPDF{Array,Dict}Items to aitems() and ditems()Jay Berkenbilt
2021-02-21Add transformAnnotations and fix flattenRotations to use itJay Berkenbilt
2021-02-21Add QPDFObjGen::unparseJay Berkenbilt
2021-02-21Explicitly override inherited rotate in flattenRotationsJay Berkenbilt
2021-02-21Use QPDFMatrix inside flattenRotationsJay Berkenbilt
2021-02-21QPDFObjectHandle::copyStreamJay Berkenbilt
2021-02-21Refactor: separate copyStreamData from replaceForeignIndirectObjectsJay Berkenbilt
2021-02-21addFormField: update cache rather than invalidatingJay Berkenbilt
2021-02-21Enhance QPDFMatrix APIJay Berkenbilt