How to embed confluence pdf document to external applications using iFrame?

dev pandey
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 19, 2024

I am trying to embed confluence pdf document using iFrame(HTML). When I try to load the page, it is automatically downloading the pdf document.

Below is the url I am using in iFrame:

https://domain.net/wiki/attachments/XXXXXXXXX/Test_IFramebasics-of-data-science-kpk%20(1).pdf?inline=true&preview=XXXXXXXX

https://domain.net/wiki/download/attachments/XXXXXXXX/Test_IFramebasics-of-data-science-kpk%20(1).pdf?inline=true

 

I tried with both option but unable to view it in browser.

 

 

1 answer

1 vote
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 19, 2024

HI @dev pandey 

This is not an option is Confluence is vulnerable to clickjacking.

You can use the PDF macro on a Confluence page to show the PDF.

Or you could try an app mentioned in this previous community article: How-can-i-add-a-confluence-page-to-a-iFrame-on-external-page 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events