diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-10-11 21:22:18 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-10-12 12:55:04 +0100 |
commit | d64a4eabb26bf6cc05d7de1175edb706117e1207 (patch) | |
tree | a095f3b8aa3e2b1e78bbb73084c5f92e75f96909 /source | |
parent | 798aaf5adcc326ff96823be918452f01a29e0449 (diff) | |
download | mupdf-d64a4eabb26bf6cc05d7de1175edb706117e1207.tar.xz |
Bug 696939: Fix mutool info -I flag.
When using -I without -X we were not seeing the expected images
listed. Adopt the solution suggested by the bug reporter.
Many thanks!
Diffstat (limited to 'source')
-rw-r--r-- | source/tools/pdfinfo.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/tools/pdfinfo.c b/source/tools/pdfinfo.c index fd03db34..edec4217 100644 --- a/source/tools/pdfinfo.c +++ b/source/tools/pdfinfo.c @@ -606,13 +606,17 @@ gatherresourceinfo(fz_context *ctx, globals *glo, int page, pdf_obj *rsrc, int s } xobj = pdf_dict_get(ctx, rsrc, PDF_NAME_XObject); - if (show & XOBJS && xobj) + if (show & (IMAGES|XOBJS) && xobj) { int n; - gatherimages(ctx, glo, page, pageref, xobj); - gatherforms(ctx, glo, page, pageref, xobj); - gatherpsobjs(ctx, glo, page, pageref, xobj); + if (show & IMAGES) + gatherimages(ctx, glo, page, pageref, xobj); + if (show & XOBJS) + { + gatherforms(ctx, glo, page, pageref, xobj); + gatherpsobjs(ctx, glo, page, pageref, xobj); + } n = pdf_dict_len(ctx, xobj); for (i = 0; i < n; i++) { |