summaryrefslogtreecommitdiff
path: root/test/x11pdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/x11pdf.c')
-rw-r--r--test/x11pdf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/x11pdf.c b/test/x11pdf.c
index 6e38071f..3200b893 100644
--- a/test/x11pdf.c
+++ b/test/x11pdf.c
@@ -221,15 +221,14 @@ static void pdfopen(char *filename, char *password)
if (error) fz_abort(error);
}
+ error = pdf_loadnametrees(xref);
+ if (error) fz_abort(error);
+
error = pdf_loadpagetree(&pages, xref);
if (error) fz_abort(error);
count = pdf_getpagecount(pages);
- error = pdf_loadnametree(&xref->dests, xref, "Dests");
- if (error)
- fz_abort(error);
-
strlcpy(doctitle, filename, sizeof doctitle);
obj = fz_dictgets(xref->trailer, "Info");
if (fz_isindirect(obj))