EmbedPDF
A PDF viewer that seamlessly integrates with any JavaScript project
EmbedPDF is a JavaScript PDF viewer library designed to make embedding PDF documents into web applications simple and highly customisable. It provides two integration paths: a polished, ready-to-use viewer component that can be added to a page in a couple of lines of code, and a headless library that exposes all rendering and interaction primitives so developers can build a completely custom viewer interface.
The viewer supports annotation tools including highlighting, drawing, and shapes, text selection and extraction, zoom, rotation, multi-spread layouts, printing, and export. SDKs are available for React, Vue, Svelte, and vanilla JavaScript, and the library includes internationalisation support and AI-powered layout analysis for detecting document structure.
EmbedPDF is aimed at developers who need a flexible, framework-agnostic PDF viewing solution without the cost and lock-in of proprietary commercial PDF SDKs. Its MIT licence ensures full code ownership regardless of how it is integrated.