From abb53ac36913fe56c404bf1748a230300c9a5c4a Mon Sep 17 00:00:00 2001 From: Tobias Hoffmann Date: Fri, 22 Jun 2012 18:52:13 +0200 Subject: Limited inheritance to the attributes explicitly listed in the PDF spec 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. --- include/qpdf/QPDF.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index a6d88941..ec5f5d7c 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -908,11 +908,12 @@ class QPDF // Methods to support optimization - void pushInheritedAttributesToPage(bool allow_changes); + void pushInheritedAttributesToPage(bool allow_changes, + bool warn_skipped_keys); void pushInheritedAttributesToPageInternal( QPDFObjectHandle, std::map >&, - bool allow_changes); + bool allow_changes, bool warn_skipped_keys); void updateObjectMaps(ObjUser const& ou, QPDFObjectHandle oh); void updateObjectMapsInternal(ObjUser const& ou, QPDFObjectHandle oh, std::set& visited, bool top); -- cgit v1.2.3-54-g00ecf