diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-10-17 17:13:32 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-10-28 16:18:38 +0200 |
commit | 8a07b7fb14f11204a0d840792ab9f4bd54b066e5 (patch) | |
tree | e617a898c17aeb353f35d7b362ca2de290cf2b82 /source/xps/xps-zip.c | |
parent | 4029b45e494634361a4205f8896ec429d11e990a (diff) | |
download | mupdf-8a07b7fb14f11204a0d840792ab9f4bd54b066e5.tar.xz |
Clean up link destination handling.
All link destinations should be URIs, and a document specific function
can be called to resolve them to actual page numbers.
Outlines have cached page numbers as well as string URIs.
Diffstat (limited to 'source/xps/xps-zip.c')
-rw-r--r-- | source/xps/xps-zip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/xps/xps-zip.c b/source/xps/xps-zip.c index b2cc9e77..ba9947c7 100644 --- a/source/xps/xps-zip.c +++ b/source/xps/xps-zip.c @@ -231,6 +231,7 @@ xps_init_document(fz_context *ctx, xps_document *doc) doc->super.refs = 1; doc->super.drop_document = (fz_document_drop_fn *)xps_drop_document; doc->super.load_outline = (fz_document_load_outline_fn *)xps_load_outline; + doc->super.resolve_link = (fz_document_resolve_link_fn *)xps_lookup_link_target; doc->super.count_pages = (fz_document_count_pages_fn *)xps_count_pages; doc->super.load_page = (fz_document_load_page_fn *)xps_load_page; doc->super.lookup_metadata = (fz_document_lookup_metadata_fn *)xps_lookup_metadata; |