diff options
Diffstat (limited to 'apps/mupdfshow.c')
-rw-r--r-- | apps/mupdfshow.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/mupdfshow.c b/apps/mupdfshow.c index 92fcac2d..94aa90d6 100644 --- a/apps/mupdfshow.c +++ b/apps/mupdfshow.c @@ -2,8 +2,7 @@ * pdfshow -- the ultimate pdf debugging tool */ -#include "fitz.h" -#include "mupdf.h" +#include "mupdf-internal.h" static pdf_document *doc = NULL; static fz_context *ctx = NULL; @@ -145,7 +144,7 @@ static void showgrep(char *filename) pdf_obj *obj; int i; - for (i = 0; i < doc->len; i++) + for (i = 0; i < pdf_count_objects(doc); i++) { if (doc->table[i].type == 'n' || doc->table[i].type == 'o') { |