aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
AgeCommit message (Collapse)Author
2022-11-20Remove redundant parameters cross_indirect and stop_atstreams from ↵m-holger
QPDFObjectHandle::copyObject1
2022-11-20Refactor QPDFObjectHandle::unsafeShallowCopym-holger
2022-11-20Remove redundant QPDFObjectHandle::copyObject2m-holger
copyObject2 repeats a second time what new_obj = QPDFObjectHandle(obj->copy(true)) in shallowCopyInternal2 already did.
2022-11-20Remove redundant parameter first_level_only from ↵m-holger
QPDFObjectHandle::shallowCopyInternal2 and copyObject2
2022-11-20Remove redundant parameters cross_indirect and stop_atstreams from ↵m-holger
QPDFObjectHandle::copyObject2
2022-11-20Split QPDFObjectHandle::shallowCopyInternal and copyObjectm-holger
Have separate versions for unsafeShallowCopy, shallowCopy and makeDirect.
2022-11-20Rename QPDFObject::shallowCopy to copym-holger
Add optional parameter shallow. Change logic errors to runtime errors.
2022-11-20Add methods QPDFTokenizer::Token::isWordm-holger
2022-11-20Add method QPDFTokenizer::Token::isIntegerm-holger
2022-11-19Correctly handle reuse of xref stream (fixes #809)Jay Berkenbilt
2022-11-19Remove QPDF_Stream::getOffset and QPDF_Stream::setObjGenm-holger
2022-11-19Remove QPDF_Stream::offsetm-holger
2022-11-19Remove redundant parameters from QPDF_Stream::warnm-holger
2022-11-19Remove QPDF_Stream qpdf and og data membersm-holger
2022-11-19Remove QPDFObjectHandle::Factory::newStreamm-holger
2022-11-19Use QPDF::newStream in librarym-holger
2022-11-19Add new methods QPDF::newStreamm-holger
2022-11-19Add private method QPDF::nextObjGenm-holger
2022-11-19Add private overload of QPDF::makeIndirectObject taking a QPDFObject shared_ptrm-holger
2022-11-14Fix stray formatting errorm-holger
2022-10-08Fix stray formatting errorJay Berkenbilt
2022-10-08Fix major performance bug with openssl crypto (fixes #798)Jay Berkenbilt
Lazily load MD5 and RC4 once in the life of the program. Only load the legacy provider if RC4 is actually being used.
2022-10-06Be more conservative about QPDF_DLL_CLASS with mingw (fixes #799)Jay Berkenbilt
* Define it even though previous experiments have shown it to be unnecessary since it seems like it may be necessary after all * Add QPDF_DLL_CLASS to QPDFObjectHelper and QPDFDocumentHelper in case there's some future unknown reason why someone may want to have them and/or in case it helps with the weird QPDFNameTreeObjectHelper problem.
2022-10-03Fix typos in error messagem-holger
2022-10-01Inline call to QPDFObjectHandle::parse in QPDF::readObjectm-holger
2022-10-01Code tidy: use QPDF::toS and QPDF::toI where possiblem-holger
2022-10-01Add private methods QPDF::damagedPDFm-holger
2022-09-26Fix edge case in character encoding (fixes #778)Jay Berkenbilt
Avoid representing as PDF Doc encoding any string whose PDF Doc encoding representation starts with a UTF-16 or UTF-8 marker.
2022-09-24Tune QPDF_String::useHexString()m-holger
2022-09-23Refactor Pl_Bufferm-holger
Base implementation of the buffer on std::basic_string<unsigned char>.
2022-09-23Tune QUtil::hex_encodem-holger
2022-09-23Tune unparsing of hex strings in QPDF_String::unparsem-holger
2022-09-21Replace calls to QUtil::int_to_string with std::to_stringm-holger
2022-09-14Cosmetic: use default constructor for QPDFObjGenJay Berkenbilt
2022-09-13Remove explicit direct object check from getObjectJay Berkenbilt
An indirect object reference to 0, 0 is invalid. If it appears in the file or is parsed from a string, the parser catches it. This check would only be useful for someone explicitly calling getObject with 0, 0, and that would trigger an error during resolve().
2022-09-13Remove redundant function callsJay Berkenbilt
2022-09-13Fix up a few commentsJay Berkenbilt
2022-09-12Remove obsolete LL_FMT check from build (fixes #768)Jay Berkenbilt
This was broken for cross-compilation and has probably been unnecessary for several years now. Also fix extraneous whitespace in related some tests.
2022-09-10Change QPDFObjectHandle == to isSameObjectAsJay Berkenbilt
Replace operator== and operator!=, which were testing for the same underlying object, with isSameObjectAs. This change was motivated by the fact that pikepdf internally had its own operator== method for QPDFObjectHandle that did structural comparison. I backed out qpdf's operator== as a courtesy to pikepdf (in my own testing) but also because I think people might naturally assume that operator== does a structural comparison, and isSameObjectAs is clearer in its intent.
2022-09-09Add C API functions for using custom loggersJay Berkenbilt
Expose functions to the C API to create new loggers and to setLogger and getLogger for QPDF and QPDFJob.
2022-09-09Make QPDFLogger() private and provide create methodJay Berkenbilt
2022-09-09Add JSON v2 support to C APIJay Berkenbilt
2022-09-08Switch user-supplied functions in C API to return intJay Berkenbilt
2022-09-08Add ability to initialize Pl_Function with a C-style functionJay Berkenbilt
2022-09-08Rename QPDFValueProxy back to QPDFObjectJay Berkenbilt
QPDFValueProxy wasn't a good name for it. We decided the evil of having the header file be named QPDFObject_private.hh was less than the evil of having the class be named something other than what it should have been named.
2022-09-08Rename QPDFValueProxy.hh and QPDFValueProxy.ccJay Berkenbilt
Preparing to change the class name back to QPDFObject
2022-09-08Change reset to disconnect and clarify commentsJay Berkenbilt
I decided that it's actually fine to copy a direct object to another QPDF. Even if we eventually prevent a QPDFObject from having multiple parents, this could happen if an object is moved.
2022-09-08Create a special "destroyed" type rather than using nullJay Berkenbilt
When a QPDF is destroyed, changing indirect objects to direct nulls makes them effectively disappear silently when they sneak into other places. Instead, we should treat this as an error. Adding a destroyed object type makes this possible.
2022-09-08Clear owning QPDF information for all objects, not just indirectJay Berkenbilt
2022-09-08Remove superfluous call to resetObjGenJay Berkenbilt