aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_pages.cc
diff options
context:
space:
mode:
authorTobias Hoffmann <thobi@worker>2012-06-22 17:50:02 +0200
committerJay Berkenbilt <ejb@ql.org>2012-07-04 22:24:03 +0200
commit7770a1b036433be7a47b65da7c34297353c7e77d (patch)
tree43a7a6371e8f70d3fa33d53af00a059f4343f289 /libqpdf/QPDF_pages.cc
parent235188df85c54a530a3cbf382aff3e58ea69618e (diff)
downloadqpdf-7770a1b036433be7a47b65da7c34297353c7e77d.tar.zst
Added public method QPDF::pushInheritedAttributesToPage
Refactored optimizePagesTree to pushInheritedAttributesToPage and made public
Diffstat (limited to 'libqpdf/QPDF_pages.cc')
-rw-r--r--libqpdf/QPDF_pages.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libqpdf/QPDF_pages.cc b/libqpdf/QPDF_pages.cc
index 3c94d428..f98ed95a 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
- optimizePagesTree(true);
+ pushInheritedAttributesToPage();
getAllPages();
QPDFObjectHandle pages = getRoot().getKey("/Pages");
@@ -225,7 +225,6 @@ QPDF::addPageAt(QPDFObjectHandle newpage, bool before,
insertPage(newpage, refpos);
}
-
void
QPDF::addPage(QPDFObjectHandle newpage, bool first)
{