Nutrient Web SDK offers developers control over document security when PDF, Word, Excel, PowerPoint, or image files are displayed in the viewer.

Quick start

Open a password-protected PDF document:

NutrientViewer.load({
container: "#pspdfkit",
document: "/path/to/protected.pdf",
password: "user-password"
})
.then((instance) => {
console.log("Protected document opened");
})
.catch((error) => {
if (error.message.includes("password")) {
console.error("Invalid password");
} else {
console.error("Failed to open:", error.message);
}
});

Key capabilities

  • Dynamic watermarks — Render user identifiers on top of a PDF
  • Disable PDF export — Remove the download button
  • Set and enforce permissions — Disable printing and copying
  • Password protected — Programmatically encrypt or decrypt PDF documents
  • Extendable — Add digital signatures, redaction, and more

Guides for document security

Prevent print or download
How to configure printing and make it difficult to download PDFs

Open without downloading
How to make it difficult to download PDF documents

Add a watermark
How to render dynamic watermarks on top of a PDF document

Password protect a PDF
How to protect a PDF document with a password

With Document Engine
Learn how Nutrient Web SDK with Document Engine improves document security

PDF JavaScript security
Understand PDF JavaScript sandboxing and when to disable it

Start your free trial for unlimited access and expert support.