From c630e8e213f5b697b3b78989ba866fed9dd0d45f Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Tue, 28 May 2013 13:23:38 +0100 Subject: Access the trailer via an interface --- apps/pdfshow.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/pdfshow.c') 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) -- cgit v1.2.3