From b5012512916cf136d2f44c0f525075c26686bb77 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 15 Jul 2012 07:42:39 -0400 Subject: qpdf: push inherited attributes to page when showing images from qpdf command-line tool --- libqpdf/QPDFObjectHandle.cc | 3 ++- qpdf/qpdf.cc | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 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 pages = pdf.getAllPages(); int pageno = 0; for (std::vector::iterator iter = -- cgit v1.2.3-70-g09d2