Expand my Community achievements bar.

SOLVED

Pdf file opening in same window.

Avatar

Level 2

Hi ,

 I am facing the problem right now with opening of pdf files . Whenever I provide a link to pdf present in dam using TextArea , it is opening the file in same window .Is there some configuration which I can do so that it opens up in new window or gives us a pop window asking us to save or cancel the file as happens with doc or txt type of files.

1 Accepted Solution

Avatar

Correct answer by
Level 10

We open PDF docs located in the DAM  - we simply include target="_blank":

<a target="_blank" href="https://forums.adobe.com/content/dam/help/attachments/dev5.pdf">Developing for Adobe Experience Manager</a></p>

Also - most CQ components also give you an option to open the content in a new window:

[img]newWin.png[/img]

I have never seen an issue opening a PDF in a new window. 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

We open PDF docs located in the DAM  - we simply include target="_blank":

<a target="_blank" href="https://forums.adobe.com/content/dam/help/attachments/dev5.pdf">Developing for Adobe Experience Manager</a></p>

Also - most CQ components also give you an option to open the content in a new window:

[img]newWin.png[/img]

I have never seen an issue opening a PDF in a new window.