diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-02-01 15:06:55 +0000 |
---|---|---|
committer | Robin Watts <robin@ghostscript.com> | 2012-02-02 00:16:48 +0000 |
commit | 4ab5924753d32b5eaeb80138c6626057f61b516f (patch) | |
tree | d60def29f688c36ca474c5b06221d58ee82268db /xps/xps_util.c | |
parent | 16c575d5b9fb0ce4488cac07d2b09ccbcaaf95c9 (diff) | |
download | mupdf-4ab5924753d32b5eaeb80138c6626057f61b516f.tar.xz |
Work on supporting links in xps documents.
Currently, this only works with local links.
When running the page, check for NavigateUri entries; if found,
and that page is not already marked as having resolved it's links,
add a new link entry to doc->current_page links. When the page
finishes running, mark the page as having resolved it's links.
This avoids the links being generated multiple times.
Update the mupdf viewer to use these links - but only AFTER the
page has been run.
Diffstat (limited to 'xps/xps_util.c')
-rw-r--r-- | xps/xps_util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xps/xps_util.c b/xps/xps_util.c index d6e226b5..6af4da91 100644 --- a/xps/xps_util.c +++ b/xps/xps_util.c @@ -77,6 +77,10 @@ xps_clean_path(char *name) return name; } +/* RJW: Possible problems here: + * "/foo" + "../../bar" = "/bar" not "../bar" + * "http://something/" + ... doesn't work. + */ void xps_absolute_path(char *output, char *base_uri, char *path, int output_size) { |