Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I link a page in a local PDF file?

I load a PDF file when user clicks a button using jQuery, but it opens the document starting from the first page (as it is always).

I would like to link a specific page depending of the needed chapter. Is it there any way to do this nice to have thing?

Here is how I open the document:

$('#btnManual').click(function() {
    window.open('documentation/test.pdf');
});
like image 733
Maxim Roman Avatar asked May 09 '18 05:05

Maxim Roman


People also ask

Can you link to a certain part of a PDF?

Choose Tools, click on Edit PDF, then on Link, and finally, select Add/Edit Web or Document Link. Select the area that you want to hyperlink. Then, in the Create Link dialog box, choose the options you want for the link appearance and click on the Open a Web Page button for the link action. Hit Next and enter the link.

Can you link to a specific page in a PDF in Google Drive?

Upload a PDF file from your local device, or cloud such as Dropbox, Google Drive, OneDrive, or web address. Click the “Links” button on the top toolbar. Drag the cursor to mark up the text you need to create a link. Choose “Link to internal page” and enter the page number you want to access.

Can I insert a PDF page into another PDF?

Insert one PDF into anotherIn the secondary toolbar, choose Insert > From File. Alternatively, you can right-click a page and select Insert Pages to get the insert options. Select the PDF you want to insert and click Open.


1 Answers

To target an HTML link to a specific page in a PDF file, add #page=[page number] to the end of the link's URL.

For example, this HTML tag opens page 4 of a PDF file named myfile.pdf:

<A HREF="http://www.example.com/myfile.pdf#page=4">

More info: https://helpx.adobe.com/acrobat/kb/link-html-pdf-page-acrobat.html

like image 86
thingEvery Avatar answered Sep 22 '22 17:09

thingEvery