Open and Display PDFs in the Browser Using JavaScript

Use JavaScript to open PDFs from a number of input sources, including remote URLs, blobs, ArrayBuffers, local storage, Base64 data, and more. Opened PDFs can be rendered in the viewer, annotated, and edited.

Launch Demo

PSPDFKit SDKs are deployed in some of the world’s most popular applications, such as those made by PlanGrid, Disney, DocuSign, Dropbox, IBM, and Lufthansa.

Key Capabilities

  • Local storage or remote URL — Open files that are stored anywhere

  • Input data types — Load from a blob, ArrayBuffer, or Base64

  • Secured PDFs — Open encrypted or password-protected files

  • Client-side — Open PDFs directly in the browser (no server needed)

  • Extendable — Add annotation, signing, editing, forms, and more

Guides for Opening a Document

Open from a Remote URL
How to open a PDF document from a remote URL

Open from a Blob
How to open a PDF document from a blob

Open from an ArrayBuffer
How to open a PDF document from an ArrayBuffer

Open from Local Storage
How to open a PDF document from local storage

Open from Base64 Data
How to open a PDF document from Base64 data

Open from PSPDFKit Server
How to open a PDF document from the optional PSPDFKit Server

Open Password-Protected PDFs
How to transparently open password-protected PDFs

Open HTTP Authenticated PDFs
How to transparently open PDFs protected by HTTP authentication

Open Encrypted PDFs
How to decrypt a PDF that uses custom encryption

Open on a Specific Page
How to open a PDF and show a specific page after loading

Framework Support

PSPDFKit for Web is compatible with any JavaScript framework, including React, Angular, and Vue.js.

Free Trial

  • Unlimited trial usage

  • Guidance and tech support from developers

  • Get started