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 badges
Add a ment  | 

2 Answers 2

Reset to default 6

I 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