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 =