# How to open a PDF used in a link

**URL:** https://forums.creativeclouddeveloper.com/t/how-to-open-a-pdf-used-in-a-link/1828
**Category:** UXP Plugin API
**Tags:** javascript
**Created:** [June 9, 2020, 2:29pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-open-a-pdf-used-in-a-link/1828 "2020-06-09T14:29:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jojo](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@Jojo](https://forums.creativeclouddeveloper.com/u/Jojo)
#### Post date: [June 9, 2020, 2:29pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-open-a-pdf-used-in-a-link/1828/1 "2020-06-09T14:29:45Z")

</div>

Hey,

in my user dialog I want to include a link, that contains a pdf:

`<a href="mypdf.pdf">click to view the PDF</a>`

Unfortunately when I click on the link the pdf doesn’t open up.  
Neither in a PDF Viewer nor in the browser.

What do I have to do to make this work?

Thanks for some help =)  
Jojo

---

<div class="post-metadata">

### Author: ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)
#### Post date: [June 9, 2020, 3:00pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-open-a-pdf-used-in-a-link/1828/2 "2020-06-09T15:00:57Z")

</div>

Unfortunately, right now links are limited to remote URLs.

Security issues and all that, I guess.

Frustrating, though.
