A lightweight, customizable PDF viewer that works seamlessly with any JavaScript project. No dependencies, no hassle.
MIT licensed, no paywalls, no limits. Skip overpriced SDKs with full source access.
Extensive API for complete control. Themes, annotations, search, and more.
Works with JavaScript or TypeScript projects. React, Vue, Svelte, or vanilla.
Get started in seconds with just two lines of code
<!-- Add the PDF container -->
<div id="pdf-viewer" style="height: 500px"></div>
<!-- Initialize EmbedPDF -->
<script async type="module">
import EmbedPDF from 'https://snippet.embedpdf.com/embedpdf.js';
const EPDFinstance = EmbedPDF.init({
type:'container',
target:document.getElementById('pdf-viewer'),
src:'https://snippet.embedpdf.com/ebook.pdf'
})
</script>
Interact with our PDF viewer below - zoom, scroll, and navigate through pages
EmbedPDF saved us countless hours of development time. Our documents now load faster and look better than ever before.
Join thousands of developers who've simplified their PDF integration with EmbedPDF.