How to Make a URL of a PDF File

Techwalla may earn compensation through affiliate links in this story.
URLs create links to specific files.

Web programmers use URL when creating hyperIinks that connect to other pages and files. The URL (Uniform Resource Locator) tells your browser where it can find the file pointed to by the link. Most links on web pages point to other web pages or image files. But more and more websites contain links to PDF documents. Creating a URL for a PDF document is similar to creating URLs for other file types. In order to view the PDF document after clicking on the link, the user will have to have Adobe Reader installed on their computer.

Step 1

Open the program you use to edit your web pages and go to the web page where you wish to insert the link to the PDF document.

Step 2

Insert the following HTML code: "Click here to view PDF file" (without the first and last quotation marks.) The words "Click here to view PDF file" will appear on your web page as a hyperlink and will be the words the user clicks on to go to the PDF document. You can replace them with other words of your choosing.

Step 3

Replace the word "URL" with the actual URL of the PDF document. If the PDF document is saved as "myfile.pdf" in the same folder as your web page, the URL will be "myfile.pdf". If the PDF document is saved in a subfolder called "Documents," the URL will be "Documents/myfile.pdf". If the PDF document is on another website in a folder called "Documents", the URL will be "" (use the actual name of the website.)

Step 4

Save your changes. The final text of the new HTML code should look like this: "Click here to view PDF file" (without the first and last quotation marks.)

Step 5

Publish the HTML file with the new link to your website.


You can cause the PDF document to open to a specific page by adding "#page=[page number]" to the end of the file name in the URL. For example, if you want the document to open to page 10, use the URL "" Advanced users also can control other display options when the file is opened. (See Resources.)

references & resources