Embedpdf
A Quarto extension to embed PDF files in HTML formats
Install / Use
/learn @jmgirard/EmbedpdfREADME
[!NOTE]
Quarto has native PDF support that may be preferred in some cases: native.html
embedpdf Extension For Quarto
This extension provides support for embedding PDF files into Quarto HTML files (including RevealJS presentations). Each file will be added to your HTML file using the <object type="application/pdf"> tag with a fallback to either text or (if supplied) an image with a download link for mobile browsers.
Installing
You need to run the following command in your terminal while in the same working directory as your Quarto document. This is often easiest using an RStudio project and the RStudio terminal. Doing so will create a new _extensions folder in that directory.
quarto add jmgirard/embedpdf
This will install the extension under the _extensions subdirectory.
If you're using version control, you will want to check in this directory.
Using
To embed a PDF file in your document, use the {{< pdf URL >}} shortcode. For example:
{{< pdf dummy.pdf >}}
{{< pdf dummy.pdf width=100% height=800 >}}
{{< pdf dummy.pdf image=dummy.png >}}
{{< pdf dummy.pdf button="Download PDF" >}}
Guides
Here is a more in-depth guide to using the embedpdf extension: example.html.
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
