Commit b5012512916cf136d2f44c0f525075c26686bb77
1 parent
0575d77d
qpdf: push inherited attributes to page when showing images
from qpdf command-line tool
Showing
2 changed files
with
6 additions
and
1 deletions
libqpdf/QPDFObjectHandle.cc
| ... | ... | @@ -469,7 +469,8 @@ QPDFObjectHandle::getPageImages() |
| 469 | 469 | |
| 470 | 470 | // NOTE: If support of inherited resources (see above comment) is |
| 471 | 471 | // implemented, edit comment in QPDFObjectHandle.hh for this |
| 472 | - // function. | |
| 472 | + // function. Also remove call to pushInheritedAttributesToPage | |
| 473 | + // from qpdf.cc when show_page_images is true. | |
| 473 | 474 | |
| 474 | 475 | std::map<std::string, QPDFObjectHandle> result; |
| 475 | 476 | if (this->hasKey("/Resources")) | ... | ... |
qpdf/qpdf.cc
| ... | ... | @@ -945,6 +945,10 @@ int main(int argc, char* argv[]) |
| 945 | 945 | } |
| 946 | 946 | if (show_pages) |
| 947 | 947 | { |
| 948 | + if (show_page_images) | |
| 949 | + { | |
| 950 | + pdf.pushInheritedAttributesToPage(); | |
| 951 | + } | |
| 948 | 952 | std::vector<QPDFObjectHandle> pages = pdf.getAllPages(); |
| 949 | 953 | int pageno = 0; |
| 950 | 954 | for (std::vector<QPDFObjectHandle>::iterator iter = | ... | ... |