mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 19:08:59 +00:00
qpdf: push inherited attributes to page when showing images
from qpdf command-line tool
This commit is contained in:
parent
0575d77d77
commit
b501251291
@ -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"))
|
||||
|
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user