summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_pages.cc
AgeCommit message (Collapse)Author
2013-10-18Security: replace operator[] with atJay Berkenbilt
For std::string and std::vector, replace operator[] with at. This was done using an automated process. See README.hardening for details.
2013-10-10Replace some assertions with std::logic_errorJay Berkenbilt
Ideally, the library should never call assert outside of test code, but it does in several places. For some cases where the assertion might conceivably fail because of a problem with the input data, replace assertions with exceptions so that they can be trapped by the calling application. This commit surely misses some cases and replaced some cases unnecessarily, but it should still be an improvement.
2013-06-14Use QPDFObjectHandle::getObjGen() where appropriateJay Berkenbilt
In internal code and examples, replace calls to getObjectID() and getGeneration() with calls to getObjGen() where possible.
2013-06-14Promote QPDF::ObjGen to top-level object QPDFObjGenJay Berkenbilt
2013-03-04Remove all old-style casts from C++ codeJay Berkenbilt
2012-07-29Fix spelling errorsJay Berkenbilt
2012-07-11Support copying objects from another QPDF objectJay Berkenbilt
This includes QPDF::copyForeignObject and supporting foreign objects as arguments to addPage*.
2012-07-07Build this->all_pages while traversing with pushInheritedAttributesToPageTobias Hoffmann
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-24Fixed missing throwTobias Hoffmann
2012-06-22Add QPDF::emptyPDF() and pdf_from_scratch test codeJay Berkenbilt
2012-06-21Use getRoot() instead of looking it up in the trailerJay Berkenbilt
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