From 7fe9ac6fa15b3b36327b7ff8c3d749495fbe9aab Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 30 Dec 2011 18:35:27 +0000 Subject: Load outlines in viewer after pages to allow links to work. In order for hyperlinks to work, we need to load the outlines after the pages tree. --- apps/pdfapp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/pdfapp.c b/apps/pdfapp.c index c701e350..cdb88e61 100644 --- a/apps/pdfapp.c +++ b/apps/pdfapp.c @@ -143,8 +143,6 @@ static void pdfapp_open_pdf(pdfapp_t *app, char *filename, int fd) * Load meta information */ - app->outline = pdf_load_outline(app->xref); - info = fz_dict_gets(app->xref->trailer, "Info"); if (info) { @@ -176,6 +174,8 @@ static void pdfapp_open_pdf(pdfapp_t *app, char *filename, int fd) } app->pagecount = pdf_count_pages(app->xref); + + app->outline = pdf_load_outline(app->xref); } static void pdfapp_open_xps(pdfapp_t *app, char *filename, int fd) -- cgit v1.2.3