diff options
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) |