Embedding PDFs in Jekyll

How to Embed a PDF in Jekyll

  1. [download pdf](https://belovanna.github.io/assets/mydoc.pdf)

  2. <embed src="https://username.github.io/mydoc.pdf" type="application/pdf"/>

  3. 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: