iFraming External PDF Files (Currently empty element loaded)

Current Problem: iFraming external PDFs (with embed src file link) is Unavailable

While trying to embedding/iframing PDF files into Obsidian, it shows nothing but a blank frame in the preview mode - a blank element in the iframe html elements.

The following is the inspection of elements in dev mode.

iframe code used for example

<iframe src="https://d30b7srod7pe7m.cloudfront.net/uploads/2020/08/Figure_Managing-acute-asthma-in-adults_web.pdf"></iframe>

Proposed Solution

Hoping Obsidian could be as able to render out the elements in PDF files, just as web browsers does in comparison:

4 Likes

Agreed, and it would be great to be able to embed external PDF files stored locally on the PC (like we can do for images and videos)

Besides iframes, some other ideas for syntax could be:

In markdown

![PDF name](<link-to-PDF>)

Using HTML <object>

<object data="link-to-file" type="application/pdf" width="100%" height="650"></object>

Using HTML <embed>

<embed src="link-to-pdf" type="application/pdf"/>

Related discussions:

https://www.reddit.com/r/ObsidianMD/comments/12xn5sz/how_do_you_link_to_external_pdf/