2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-31 09:20:52 +00:00

qpdf: push inherited attributes to page when showing images

from qpdf command-line tool
This commit is contained in:
Jay Berkenbilt 2012-07-15 07:42:39 -04:00
parent 0575d77d77
commit b501251291
2 changed files with 6 additions and 1 deletions

View File

@ -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"))

View File

@ -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 =