Open Source & Framework Agnostic

Embed PDF files

without the pain

A lightweight, customizable PDF viewer that works seamlessly with any JavaScript project. No dependencies, no hassle.

Get Started
Source on GitHub
JavaScript
TypeScript

Truly Open and Free

MIT licensed, no paywalls, no limits. Skip overpriced SDKs with full source access.

Customizable

Extensive API for complete control. Themes, annotations, search, and more.

Works Everywhere

Works with JavaScript or TypeScript projects. React, Vue, Svelte, or vanilla.

Quick Integration

Get started in seconds with just two lines of code

index.html
<!-- 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>

See it in action

Interact with our PDF viewer below - zoom, scroll, and navigate through pages

Loading PDF Viewer...
"

EmbedPDF saved us countless hours of development time. Our documents now load faster and look better than ever before.

Bob Singor
Bob Singor
Lead Developer @ CloudPDF

Ready to transform your PDF experience?

Join thousands of developers who've simplified their PDF integration with EmbedPDF.