In this example we have two media items already uploaded;
An small image that represents our document.
The .pdf document we actually want to link to.
- On the editing screen place your cursor where you’d like the image/link to be inserted
- Above the editing screen click on Add Media

- When the Media Library Opens click on the media item you want to link to (in this example a .pdf)
- Copy the contents of the URL field, it will look like this
https://yourwebsite/wp-content/filename - Next click on the actual image you want to use as your link
- In the ‘Link To’ drop down box choose Custom URL
- Paste in the URL into the box below it we copied in step 4
- Click