Attaching PDF files in preview mode #396
Answered
by
soumendrak
soumendrak
asked this question in
Q&A
-
Is there any way to embed a PDF file like this? |
Beta Was this translation helpful? Give feedback.
Answered by
soumendrak
Oct 26, 2024
Replies: 2 comments 3 replies
-
Have you tried their HTML? <object data="https://example.com/example.pdf" type="application/pdf" width="100%" height="1800px">
<p>Unable to display PDF file? <a href="https://example.com/example.pdf">Download</a> instead.</p>
</object> Doesn't look great on my mobile, though. Just a heads up. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I tried this but it is always coming as <object data="https://github.com/soumendrak/website-v2/blob/main/static/pdfs/cv.pdf" type="application/pdf" width="100%" height="1800px">
<p>Unable to display PDF file? <a href="https://github.com/soumendrak/website-v2/blob/main/static/pdfs/cv.pdf">Download</a> instead.</p>
</object> What am I missing here? Thanks. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to do both to make it work.
frame-src
directive now looks like this: