summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_pages.cc
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 /libqpdf/QPDF_pages.cc
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 'libqpdf/QPDF_pages.cc')
-rw-r--r--libqpdf/QPDF_pages.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDF_pages.cc b/libqpdf/QPDF_pages.cc
index f98ed95a..11e21266 100644
--- a/libqpdf/QPDF_pages.cc
+++ b/libqpdf/QPDF_pages.cc
@@ -102,7 +102,7 @@ QPDF::flattenPagesTree()
}
// Push inherited objects down to the /Page level
- pushInheritedAttributesToPage();
+ pushInheritedAttributesToPage(true, true);
getAllPages();
QPDFObjectHandle pages = getRoot().getKey("/Pages");