Trusted by the world’s leading companies
High-performance PDF library for modern JavaScript apps
Empower your JavaScript apps with a robust, non-UI PDF library designed for speed and flexibility. Create, read, edit, and manipulate PDFs effortlessly. Extract text and images, apply redactions, and more. This library makes it easy for developers to automate PDF document processing operations within Angular, React, Vue, ASP.NET Core, and ASP.NET MVC web apps. It is an independent PDF library that works without relying on Adobe Acrobat.
How to create a PDF document using the JavaScript PDF Library
Getting started with the JavaScript PDF Library is simple and efficient. You can create a PDF document with just a few lines of JavaScript or TypeScript code. For detailed steps and advanced configurations, refer to the JavaScript PDF Library User Guide to learn how to create, customize, and manage PDF documents across different frameworks like Angular, React, and Vue.
import { PdfDocument, PdfPage, PdfStandardFont, PdfFontFamily, PdfFontStyle, PdfBrush } from '@syncfusion/ej2-pdf';
// Create a new PDF document.
let document: PdfDocument = new PdfDocument();
// Add a new page.
let page: PdfPage = document.addPage();
// Create a new font.
let font: PdfStandardFont = document.embedFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.regular);
// Draw text on the page graphics.
page.graphics.drawString('Hello World!', font, {x: 10, y: 20, width: 200, height: 20}, new PdfBrush({r: 255, g: 0, b: 0}));
// Save the document.
document.save('output.pdf');
// Destroy the document.
document.destroy();Why do you need our JavaScript PDF Library?
Add native, high-performance PDF capabilities to your web applications without relying on external services. Maintain complete control over your data while creating, reading, editing, and manipulating PDFs; extracting text and images; applying redactions; and collecting digital signatures. Built for scalability and reliability, our library integrates seamlessly into modern JavaScript apps, reducing complexity so your team can focus on delivering exceptional user experiences.
Works with major JavaScript frameworks
The non-UI JavaScript PDF Library is designed to work seamlessly with major JavaScript frameworks and modern web technologies. Whether you are building applications with TypeScript or JavaScript, or leveraging popular frameworks like Angular, Vue, and React, this library ensures smooth integration and consistent performance. It also supports server-side environments such as ASP.NET Core and ASP.NET MVC, making it a versatile solution for both client-side and server-side PDF processing. With its lightweight architecture, you can easily add advanced PDF capabilities to applications without compromising speed or flexibility.
JavaScript PDF Library features

Multipage PDF documents
Create multipage PDF documents with formatted text, images, shapes, templates, and more.

Unicode and RTL text
Draw Unicode and RTL text using supported TrueType fonts.

Bookmarks
Add bookmarks to a PDF document to navigate interactively from one part of the document to another. Bookmarks can also be edited and deleted.

Hyperlinks
Add hyperlinks to a PDF document to navigate to webpages or any other external content.

Shapes
Add various shapes such as rectangles, lines, polygons, arcs, ellipses, paths, pies, and Bezier curves.

Bullets and lists
Create ordered lists using numbers, the alphabet, and Roman numerals and unordered lists using various built-in styles.

Shape annotations
Include lines, squares, rectangles, polygons, and ellipses in PDF pages to create schematic drawings or mark important materials with the shapes. The shapes can be moved, resized, removed, or edited.

Watermark existing PDFs
Existing documents can be watermarked with text or images.

Annotate PDF documents
Enhance your PDFs with interactive annotations using our JavaScript PDF Library. Add highlights, comments, shapes, and notes programmatically to improve collaboration and document review workflows.

Organize PDF documents
Efficiently edit PDF content by splitting, merging, inserting, deleting, and rearranging pages.

Digital signatures
Documents can be digitally signed using x509 certificates (.pfx files with a private key). Also, customize appearance, digest algorithms, and cryptography standards.

Redaction
Easily and permanently remove sensitive or confidential content from PDF documents. This feature helps you comply with privacy regulations such as GDPR, protecting personal data while maintaining document integrity.

Text and image extraction
Our JavaScript PDF Library provides an efficient way to extract content from PDF documents. Retrieve text for indexing, searching, or analytics and extract embedded images for reuse or processing directly in the browser.
Awards
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.

