admin管理员组文章数量:1292698
Consider a very simple link to a pdf file in HTML:
<a target="_blank" href="mypdf.pdf">Link to pdf</a>
Of course, when the user clicks on the link, the pdf is open and the first page is shown in the browser.
Is there a way create a link to a specific page of the pdf? I was wondering if there is some mand like this:
<a target="_blank" href="mypdf.pdf#11">Link to page 11 of the pdf</a>
or some trick based on Javascript.
Consider a very simple link to a pdf file in HTML:
<a target="_blank" href="mypdf.pdf">Link to pdf</a>
Of course, when the user clicks on the link, the pdf is open and the first page is shown in the browser.
Is there a way create a link to a specific page of the pdf? I was wondering if there is some mand like this:
<a target="_blank" href="mypdf.pdf#11">Link to page 11 of the pdf</a>
or some trick based on Javascript.
Share Improve this question asked Jun 2, 2019 at 8:15 the_candymanthe_candyman 1,6634 gold badges23 silver badges38 bronze badges2 Answers
Reset to default 6I found answer on adobe forum https://forums.adobe./thread/2345594.
After # you should write something like #page=3 for example, to move automatically to page 3.
The following should do the trick
<a target="_blank" href="http://www.exampleurl./file.pdf#page=4">
You can also do chapters if needed but this needs a correctly formatted PDF.
Thanks
本文标签: javascriptHTML hyperlink to a specific page of a pdf fileStack Overflow
版权声明:本文标题:javascript - HTML hyperlink to a specific page of a pdf file - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741563696a2385596.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论