I'm trying to make an R markdown HTML document in Rstudio. I have a number of images that I have in pdf and eps format. I'm trying to embed these into the output with the \includegraphics{path to image}
command. However, the output HTML doesn't show anything.
R-markdown is also a markdown. Markdown itself doesn't have a mechanism for embedding a PDF, however, Markdown accepts raw HTML in its input and passes it through unaltered.
There are many ways to do this, one of the recommended ways is-
<object data="http://www.africau.edu/images/default/sample.pdf" type="application/pdf" width="700px" height="700px">
<embed src="http://www.africau.edu/images/default/sample.pdf">
<p>This browser does not support PDFs. Please download the PDF to view it: <a href="http://www.africau.edu/images/default/sample.pdf">Download PDF</a>.</p>
</embed>
</object>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With