summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-11-14 13:03:07 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-11-14 13:23:57 +0100
commit2216f9402a9ddf232e15fdd508b9123011af8bd3 (patch)
tree3b4e44be0e332bb9d957864fcde41057ed0fcb79 /source/fitz
parent018253cfc8a34805c4fc1e0f955e3696db60886a (diff)
downloadmupdf-2216f9402a9ddf232e15fdd508b9123011af8bd3.tar.xz
Add/fix page coordinates to link targets.
Correctly transformed target coordinates for PDF. Target coordinates for EPUB and HTML.
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/document.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/fitz/document.c b/source/fitz/document.c
index 87ad3884..684c8523 100644
--- a/source/fitz/document.c
+++ b/source/fitz/document.c
@@ -216,11 +216,13 @@ fz_load_outline(fz_context *ctx, fz_document *doc)
}
int
-fz_resolve_link(fz_context *ctx, fz_document *doc, const char *uri)
+fz_resolve_link(fz_context *ctx, fz_document *doc, const char *uri, float *xp, float *yp)
{
fz_ensure_layout(ctx, doc);
+ if (xp) *xp = 0;
+ if (yp) *yp = 0;
if (doc && doc->resolve_link)
- return doc->resolve_link(ctx, doc, uri);
+ return doc->resolve_link(ctx, doc, uri, xp, yp);
return -1;
}