我们可以创建一个超链接或嵌入标签来显示PDF文档的指定页面/部分吗?
让我知道是否有人有任何想法
例如:
使用小节
答案 0 :(得分:0)
只需转到您可以使用的现有PDF文件页
#page=pageNumber
PDF参数。
是的,似乎有可能,请参阅此链接http://www.pdfobject.com/examples/index.php和http://www.pdfobject.com/以获取更多信息。这是来自网站“PDFObject是一种易于使用的方法,用于将PDF文件动态嵌入到HTML文档中。它使用JavaScript生成并注入标准友好的”
<script type="text/javascript">
window.onload = function (){
var success = new PDFObject({ url: "http://www.adobe.com/content/dam/Adobe
/en/devnet/acrobat/pdfs/pdf_open_parameters_v9.pdf#page=6&zoom=150,0,216"
}).embed("pdf");
};
</script>
如您所见,您可以将URL链接更改为
thefile.pdf#page=YOURDESIREDPAGE
在this page上找到的网页中链接到PDF中的目的地, 引文开始: 的“强>
Linking to a destination is essentially the same principle but involves a few more
steps
and setting up. First up, you'll need to create the destination.
Creating a destination in a PDF using Adobe Acrobat:
Manually navigate through the PDF for the desired location, and magnification.
Move your curser to the right of the PDF, in the navigation pane.
Right click and select destination. This will open the Destinations pane.
Right click, select New Destination enter an appropriate name and select the area that
you want the destination to link to.
NOTE: Make sure that the name does not have any spaces as it makes it easier to link to
afterwards.
You are now ready to link to the destination using a similar syntax as linking to a
specific page, instead of #page write #nameddest.
Append "#nameddest=" and the name of your chosen destination. So, if your PDF has a
named destination, "TOC", that points to a table of contents, then your link code will
look like this:
<a href="http://www.mydomain.com/myPDF.pdf#nameddest=TOC">Link Text</a>
<强>“强>
答案 1 :(得分:0)
我知道附加#page=X
的方法是可行的,但是现在我很幸运地附加了#subsection.X.Y
。例如:http://tug.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf#subsection.14.1