如何在pdf中创建部分链接

kum*_*mar 5 html css pdf anchor

我们可以创建一个超链接或嵌入标签来显示 PDF 文档的指定页面/部分吗?

如果有人有任何想法,请告诉我

例如:
使用小节打开 PDF

use*_*370 6

我知道附加#page=X有效,但现在附加#subsection.X.Y. 例如: http: //tug.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf#subsection.14.1


Cis*_*nas 0

只需转到您可以使用的现有 PDF 文件页面

#page=pageNumber
Run Code Online (Sandbox Code Playgroud)

PDF 参数。

是的,这似乎是可能的,请参阅此链接http://www.pdfobject.com/examples/index.phphttp://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>
Run Code Online (Sandbox Code Playgroud)

如您所见,您可以将 URL 链接更改为

thefile.pdf#page=YOURDESIREDPAGE
Run Code Online (Sandbox Code Playgroud)

链接到本页网页中 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>
Run Code Online (Sandbox Code Playgroud)