aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTobias Hoffmann <thobi@worker>2012-06-22 18:52:13 +0200
committerJay Berkenbilt <ejb@ql.org>2012-07-05 05:04:55 +0200
commitabb53ac36913fe56c404bf1748a230300c9a5c4a (patch)
tree99094b1c71888d32ad301bea4adb583b50058a76 /include
parent7770a1b036433be7a47b65da7c34297353c7e77d (diff)
downloadqpdf-abb53ac36913fe56c404bf1748a230300c9a5c4a.tar.zst
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.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh5
1 files changed, 3 insertions, 2 deletions
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<std::string, std::vector<QPDFObjectHandle> >&,
- 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<ObjGen>& visited, bool top);