diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2013-05-28 13:23:38 +0100 |
---|---|---|
committer | Paul Gardiner <paulg.artifex@glidos.net> | 2013-05-29 13:03:20 +0100 |
commit | c630e8e213f5b697b3b78989ba866fed9dd0d45f (patch) | |
tree | 7558b7a2f46ee889d98ade65e8733ffe24580693 /apps/pdfshow.c | |
parent | 9fff004ccb4f03495f6f2872af861263eba2def1 (diff) | |
download | mupdf-c630e8e213f5b697b3b78989ba866fed9dd0d45f.tar.xz |
Access the trailer via an interface
Diffstat (limited to 'apps/pdfshow.c')
-rw-r--r-- | apps/pdfshow.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/pdfshow.c b/apps/pdfshow.c index 275c5e18..7ccfd50d 100644 --- a/apps/pdfshow.c +++ b/apps/pdfshow.c @@ -24,7 +24,7 @@ static void showtrailer(void) if (!doc) fz_throw(ctx, "no file specified"); printf("trailer\n"); - pdf_fprint_obj(stdout, doc->trailer, 0); + pdf_fprint_obj(stdout, pdf_trailer(doc), 0); printf("\n"); } @@ -34,7 +34,7 @@ static void showencrypt(void) if (!doc) fz_throw(ctx, "no file specified"); - encrypt = pdf_dict_gets(doc->trailer, "Encrypt"); + encrypt = pdf_dict_gets(pdf_trailer(doc), "Encrypt"); if (!encrypt) fz_throw(ctx, "document not encrypted"); printf("encryption dictionary\n"); @@ -183,7 +183,7 @@ static void showgrep(char *filename) } printf("%s:trailer: ", filename); - pdf_fprint_obj(stdout, doc->trailer, 1); + pdf_fprint_obj(stdout, pdf_trailer(doc), 1); } int pdfshow_main(int argc, char **argv) |