diff options
author | Jay Berkenbilt <ejb@ql.org> | 2012-07-15 13:42:39 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2012-07-15 22:22:28 +0200 |
commit | b5012512916cf136d2f44c0f525075c26686bb77 (patch) | |
tree | 6ef80f31a79c2d24f657e4dbecc412da7c59ceb6 | |
parent | 0575d77d77b0308535422ad2d3a1bf7c94baabb0 (diff) | |
download | qpdf-b5012512916cf136d2f44c0f525075c26686bb77.tar.zst |
qpdf: push inherited attributes to page when showing images
from qpdf command-line tool
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 3 | ||||
-rw-r--r-- | qpdf/qpdf.cc | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index 4f43aa89..642dee69 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -469,7 +469,8 @@ QPDFObjectHandle::getPageImages() // NOTE: If support of inherited resources (see above comment) is // implemented, edit comment in QPDFObjectHandle.hh for this - // function. + // function. Also remove call to pushInheritedAttributesToPage + // from qpdf.cc when show_page_images is true. std::map<std::string, QPDFObjectHandle> result; if (this->hasKey("/Resources")) diff --git a/qpdf/qpdf.cc b/qpdf/qpdf.cc index 0788388b..148dff04 100644 --- a/qpdf/qpdf.cc +++ b/qpdf/qpdf.cc @@ -945,6 +945,10 @@ int main(int argc, char* argv[]) } if (show_pages) { + if (show_page_images) + { + pdf.pushInheritedAttributesToPage(); + } std::vector<QPDFObjectHandle> pages = pdf.getAllPages(); int pageno = 0; for (std::vector<QPDFObjectHandle>::iterator iter = |