JavaScript PDF Redaction Library
PSPDFKit for Web is a JavaScript library for permanently redacting content in PDF documents (not just obscuring it). It’s fully compatible with JavaScript and offers developers a robust API to automate redaction, as well as a beautiful UI for creating, previewing, and applying redactions in any JavaScript-based web app.
Key Capabilities
Programmatically or using the UI
Permanently remove content (not just obscure it)
For strings, preset patterns, or regex
Redact directly in the browser (no server needed)
Trigger workflows, adjust colors, and overlay text
Works on all modern browsers and devices
Add editing, bookmarks, OCR, and more
Introduction to Redaction
Redaction is the process of removing image, text, and vector content from a PDF page. This not only involves obscuring the content, but also removing the data in the document within the specified region.
Essential Guides
Programmatic Redaction
How to use the API to programmatically redact content from PDFs
Redact Preset Patterns
How to automate redaction by searching for preset text patterns
Redact Regex Patterns
How to automate redaction by using regex patterns in text search
Search and Redact
How to automatically create redactions based on search criteria
Built-In Redaction UI
Learn about the document operations available in the redaction UI
Headless Redaction
How to redact PDFs without presenting the UI
Framework Support
PSPDFKit for Web is compatible with any JavaScript framework, including React, Angular, Vue.js, Svelte, Blazor, Next.js, TypeScript, and Nuxt.js. It’s also compatible with ASP.NET, PHP, Laravel, and HTML5. It just needs a DOM container to append the viewer, which is possible with any framework.
Integrations
PSPDFKit for Web is compatible with SharePoint, Microsoft Teams, Microsoft OneDrive, and Salesforce.
Free Trial
Enjoy unlimited trial usage of all our products. Get guidance and tech support from developers who built the product, and get started within minutes.