summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-annot.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-11-15 14:13:47 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-11-16 12:24:29 +0100
commit141870506d8809723e933963e9e001aca839cdfc (patch)
tree03c5b8a20ff1e53ecc9f55ca2030f0975d97bd9b /source/pdf/pdf-annot.c
parentce90119c0102092e1d743b4a1ec88c40570ff7ac (diff)
downloadmupdf-141870506d8809723e933963e9e001aca839cdfc.tar.xz
pdf: Use '#page=N' for remote destination pages.
As per Adobe's recommendation: https://helpx.adobe.com/acrobat/kb/link-html-pdf-page-acrobat.html
Diffstat (limited to 'source/pdf/pdf-annot.c')
-rw-r--r--source/pdf/pdf-annot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-annot.c b/source/pdf/pdf-annot.c
index b500d12f..2d6aab16 100644
--- a/source/pdf/pdf-annot.c
+++ b/source/pdf/pdf-annot.c
@@ -146,7 +146,7 @@ pdf_parse_file_spec(fz_context *ctx, pdf_document *doc, pdf_obj *file_spec, pdf_
#endif
if (pdf_is_array(ctx, dest))
- fz_snprintf(buf, sizeof buf, "#%d", pdf_to_int(ctx, pdf_array_get(ctx, dest, 0)) + 1);
+ fz_snprintf(buf, sizeof buf, "#page=%d", pdf_to_int(ctx, pdf_array_get(ctx, dest, 0)) + 1);
else if (pdf_is_name(ctx, dest))
fz_snprintf(buf, sizeof buf, "#%s", pdf_to_name(ctx, dest));
else if (pdf_is_stream(ctx, dest))