summaryrefslogtreecommitdiffstats
path: root/libqpdf
AgeCommit message (Collapse)Author
2012-07-18Prevent seeking before beginning of BufferInputSourceJay Berkenbilt
2012-07-16Add command line option to copy encryption from other fileJay Berkenbilt
Add --copy-encryption and --encryption-file-password options to qpdf. Also strengthen test suite for copying encryption. The strengthened test suite would have caught the failure to preserve AES and the failure to update the file version, which was invalidating the encrypted data.
2012-07-16Minor fixes to copyEncryptionParametersJay Berkenbilt
This fixes were to code added yesterday; the problems would not have impacted any previously released code. These are all changes related to the possibility that copyEncryptionParameters may be called on behalf a different QPDF than the one being written.
2012-07-16Bug fix: preserve AES when copying encryption parametersJay Berkenbilt
2012-07-15qpdf: push inherited attributes to page when showing imagesJay Berkenbilt
from qpdf command-line tool
2012-07-14Add public QPDFWriter::copyEncryptionParametersJay Berkenbilt
Method to copy encryption parameters from another file. Adapted from existing code to copy encryption parameters from the original file.
2012-07-14Have QPDFWriter detect foreign objects while writingJay Berkenbilt
Throw an exception that directs the user to QPDF::copyForeignObject.
2012-07-11Support copying objects from another QPDF objectJay Berkenbilt
This includes QPDF::copyForeignObject and supporting foreign objects as arguments to addPage*.
2012-07-11Add concept of reserved objectsJay Berkenbilt
QPDFObjectHandle::{new,is,assert}Reserved, QPDF::replaceReserved provide a mechanism to add objects to a PDF file when there are circular references. This is a prerequisite to copying objects from one PDF to another.
2012-07-08Fix: make unparse virtual for Null and RealJay Berkenbilt
2012-07-08Added assertNumber and assertScalar to QPDFObjectHandleTobias Hoffmann
2012-07-08Added public assert{Type} methods to QPDFObjectHandleTobias Hoffmann
2012-07-07Build this->all_pages while traversing with pushInheritedAttributesToPageTobias Hoffmann
2012-07-07Don't require stream data provider to know length in advanceJay Berkenbilt
Breaking API change: length parameter has disappeared from the StreamDataProvider version of QPDFObjectHandle::replaceStreamData since it is no longer necessary to compute it in advance. This breaking change is justified by the fact that removing the length parameter provides the caller an opportunity to simplify the calling code.
2012-07-06Add QPDFWriter method to output to FILE*Jay Berkenbilt
2012-07-05Limited inheritance to the attributes explicitly listed in the PDF specTobias Hoffmann
Previous versions of qpdf incorrectly passed arbitrary objects from /Pages objects down to individual pages in direct contradition with the PDF specification. These are now left in /Pages. When intermediate /Pages nodes are being discarded as when the /Pages tree is being flattened, a warning is issued when unknown keys are encountered.
2012-07-04Added public method QPDF::pushInheritedAttributesToPageTobias Hoffmann
Refactored optimizePagesTree to pushInheritedAttributesToPage and made public
2012-06-27Add a few minor enhancements to recent workJay Berkenbilt
Test coverage case for new newStream method Expose decimal_places argument for double-based newReal All enhancements suggested by Tobias.
2012-06-27Add Pl_Concatenate filterTobias Hoffmann
2012-06-27Add QPDFObjectHandle::newStream(QPDF *, std::string const&)Tobias Hoffmann
This makes the code simpler than having to create a buffer of a fixed size and copy the string to it.
2012-06-27Add QPDFObjectHandle::newReal(double)Tobias Hoffmann
2012-06-27Rework InputSource::readLine to make it much more efficientJay Berkenbilt
This rework makes xref reconstruction run much faster and use much less memory.
2012-06-27Rename seek functions in QUtilJay Berkenbilt
2012-06-27Visual C++ and mingw32 fixes for large filesJay Berkenbilt
2012-06-26Set version to 3.0.a0Jay Berkenbilt
2012-06-25Fix large file support for 32-bit LinuxJay Berkenbilt
2012-06-24Increase padding in linearized filesJay Berkenbilt
With QPDF allowing integers to contain 64-bit quantities, this change is necessary to be able to linearize files whose sizes might be larger than 10 digits.
2012-06-24Fix and test support for files >= 4 GBJay Berkenbilt
2012-06-24Change QPDF_Integer from int to long longJay Berkenbilt
This makes it possible to store offsets that are larger than 2 GB in the trailer dictionary.
2012-06-24Improve the FILE* version of QPDF::processFileJay Berkenbilt
2012-06-24Fixed missing throwTobias Hoffmann
2012-06-23Replace the 8-bit characters with \x.. in QPDFWriter.ccJay Berkenbilt
This just makes it safer to pull up this file in an editor.
2012-06-22Switch some code to use empty newArray/newDictionaryJay Berkenbilt
2012-06-22Add factory methods for creating empty arrays and dictionaries.Jay Berkenbilt
Also updated pdf_from_scratch test driver to use the new factories, and made some cosmetic improvements and documentation updates for the emptyPDF() method.
2012-06-22Add QPDF::emptyPDF() and pdf_from_scratch test codeJay Berkenbilt
2012-06-22Use qpdf_offset_t in place of off_t in public APIs.Jay Berkenbilt
off_t is used internally only when needed to talk to standard libraries. This requires that the "long long" type be supported by the compiler.
2012-06-21Add QPDFObjectHandle::shallowCopy()Jay Berkenbilt
2012-06-21Use getRoot() instead of looking it up in the trailerJay Berkenbilt
2012-06-21Iterate of /Info's keys, not trailer's keys, to seed /IDJay Berkenbilt
Thanks Tobias Hoffmann for noticing the error.
2012-06-21Add testing for page APIsJay Berkenbilt
2012-06-21Implement page manipulation APIsJay Berkenbilt
2012-06-21Split page handling APIs into a separate source fileJay Berkenbilt
2012-06-21Refactor optimizePagesTreeJay Berkenbilt
Split optimizePagesTree into a simpler top-level routine and a recursive internal routine.
2012-06-21Added first version of pages API.Tobias Hoffmann
2012-06-21Added method to clear pages cache.Tobias Hoffmann
2012-06-21Fix typo in commentJay Berkenbilt
2012-06-21fix include order for off_tJay Berkenbilt
2012-06-21fix doc commentJay Berkenbilt
2012-06-21Add QPDF::processFile that takes an open FILE*Jay Berkenbilt
2012-06-20Added additional array mutatorsTobias Hoffmann
Added methods to append to arrays, insert items into arrays, and replace array contents with a vector of items.