summaryrefslogtreecommitdiff
path: root/apps/pdfposter.c
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2013-05-28 13:23:38 +0100
committerPaul Gardiner <paulg.artifex@glidos.net>2013-05-29 13:03:20 +0100
commitc630e8e213f5b697b3b78989ba866fed9dd0d45f (patch)
tree7558b7a2f46ee889d98ade65e8733ffe24580693 /apps/pdfposter.c
parent9fff004ccb4f03495f6f2872af861263eba2def1 (diff)
downloadmupdf-c630e8e213f5b697b3b78989ba866fed9dd0d45f.tar.xz
Access the trailer via an interface
Diffstat (limited to 'apps/pdfposter.c')
-rw-r--r--apps/pdfposter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pdfposter.c b/apps/pdfposter.c
index 2ef44dbb..b9514892 100644
--- a/apps/pdfposter.c
+++ b/apps/pdfposter.c
@@ -38,7 +38,7 @@ static void decimatepages(pdf_document *xref)
/* Keep only pages/type and (reduced) dest entries to avoid
* references to unretained pages */
- oldroot = pdf_dict_gets(xref->trailer, "Root");
+ oldroot = pdf_dict_gets(pdf_trailer(xref), "Root");
pages = pdf_dict_gets(oldroot, "Pages");
root = pdf_new_dict(ctx, 2);