Embedding PDFs in Jekyll
How to Embed a PDF in Jekyll
-
[download pdf](https://belovanna.github.io/assets/mydoc.pdf)
-
<embed src="https://username.github.io/mydoc.pdf" type="application/pdf"/>
-
Iframe MDN docs This looks cool!
<div class="pdf-container">
<iframe src="/assets/pdf/new.pdf" height="315" width="560" allowfullscreen="" loading="lazy>
</iframe>
</div>
- NOTE: To change border, color, etc. of Iframe use:
- iframe {
border: 1px solid black;
width: 100%;
}
.output {
background: #eee;
}
Example:
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.