Ready-made Viewer
A polished, production-ready PDF viewer that drops into your app in seconds.
- Drop-in component
- Fastest way to launch
- Prebuilt toolbar and layout
The ultimate Open Source PDF viewer for JavaScript. Choose our drop-in component for instant results, or use our headless library to build a completely custom UI.
import { PDFViewer } from '@embedpdf/react' export default function App() { return ( <PDFViewer src="./ebook.pdf" style={{ height: 500 }} /> ) }
Choose the level of control that fits your project.
A polished, production-ready PDF viewer that drops into your app in seconds.
Build your own custom viewer UI from scratch. We provide the engine, you control the pixels.
Packed with features to handle real-world use cases with ease.
Copy, paste, and start embedding PDFs in seconds. No build step. No bloat. Works with your stack, today.
<div id="pdf-viewer" style="height: 500px"></div>
<script async type="module">
import EmbedPDF from 'https://cdn.jsdelivr.net/npm/@embedpdf/snippet@2/dist/embedpdf.js';
const viewer = EmbedPDF.init({
type: 'container',
target: document.getElementById("pdf-viewer"),
src: 'https://snippet.embedpdf.com/ebook.pdf'
})
</script>Apache-2.0 licensed and built transparently for the community.
Secure, reliable, and trusted by thousands of developers.
Drop in with Vanilla JS, React, Vue, Svelte, and more.
EmbedPDF is backed by real developer adoption: npm downloads, GitHub stars, and active participation in the PDF ecosystem.
Trusted by developers worldwide to embed PDFs at scale — from indie tools to enterprise document platforms.
A growing community of developers building the future of PDF on the web.
github.comProud member of the PDF Association advancing the future of PDF.
pdfa.orgFrom quick embeds to custom document workflows, developers use EmbedPDF to ship faster and stay in control.
Integrating EmbedPDF took us less than a day. The docs are fantastic and the API is super easy to work with.
We scaled to millions of document views without worrying about performance. EmbedPDF just works.
Our users love the fast, native-like experience. EmbedPDF helps us deliver a premium product every time.