-
Hi, I just started out with Marp to see if it's a better solution from making slides than LaTeX Beamer. From Beamer, I'm used to include (vector) images in PDF format. I tried to do the same with Marp:
but the image doesn't show up after compiling with The documentation doesn't mention anything at all about supported file formats for images. It does work with SVG images. Am I missing something, or is this just not supported? If so, I think the supported image formats should be mentioned in the documentation, and |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Marp is running on Web-based technology unlike TeX based tools. Generally PDF is not regarded as an image file. There is a MIME type # Embed PDF
<iframe src="file.pdf" width="100%" height="500" frameborder="0" /> marp your-markdown.md --html --pdf --allow-local-files https://forum.webdeveloper.com/d/146790-how-to-display-pdf-picture-in-html |
Beta Was this translation helpful? Give feedback.
Marp is running on Web-based technology unlike TeX based tools.
![]()
image syntax is corresponding to<img src="">
HTML tag, and it's only working with images compatible with Web (See Image file type and format guide on MDN).Generally PDF is not regarded as an image file. There is a MIME type
application/pdf
in PDF, notimage/*
. To embed PDF document, use<iframe>
tag with enabling HTML rendering by Marp CLI's--html
option.marp your-markdown.md --html --pdf --allow-local-files
https://forum.webdeveloper.com/d/146790-how-to-display-pdf-picture-in-html