锚链接PDF工作 [英] Anchor link PDF work around
问题描述
在IE中,目前锚定链接到PDF上的某个部分仅在相关PDF被缓存或最近已在用户的计算机上下载时才有效。
In IE currently anchor linking to a section on a PDF only works if the PDF in question is cached or has been downloaded recently on the user's computer.
示例
User clicks anchor link to pdf first time
PDF loads at the beginning of document
User goes back to website and clicks link again
PDF loads at anchor linked position
有谁知道一项工作在第一次点击链接时PDF将在所需位置加载?
Does anyone know of a work around in which the PDF will load at the desired position upon first clicking the link?
请注意,锚链接的类型为 #page = 200
并符合这些指南 http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf
Note that the anchor links are of the type #page=200
and fit these guidelines http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf
推荐答案
这是我目前的解决方案,虽然不完美但是有效。
Here is my current solution, while not perfect it works.
<div class="hidden" id="iframes"></div> //-- hidden div at bottom of page
$(function() {
var urls = ["url one", "url two", "etc..."];
$(urls).each(function(index, url) {
var iframe = $("<iframe />").attr({ src: url });
$("#iframes").append(iframe);
});
});
这篇关于锚链接PDF工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!