JavaScript Image Viewer Library

PSPDFKit for Web is a JavaScript image viewer library that includes support for directly rendering JPEG, PNG, and TIFF files in any modern browser or mobile device without any plugins. It offers developers a way to quickly embed a highly configurable image or PDF viewer with a beautiful UI.

Launch Demo

Key Capabilities

  • Customizable UI – Hide or add buttons, and match your look & feel

  • Responsive – Mobile-friendly UI auto-adjusts to all screen sizes

  • Client-side – Workload is offloaded to client (no server needed)

  • Accessible – Built-in assistive technology-friendly features

  • PNG, JPG, and TIFF – Open images and PDFs

  • Browser support – Works on all modern browsers and devices

  • Extendable – Add annotation, MS Office support, forms, and more

ℹ️ Note: This feature requires the Image Documents component to be enabled in your license.

Image File Type Support

PSPDFKit supports the following file types:

Image Support

Loading Image Documents

When calling PSPDFKit#load() and passing a blob, array buffer, or URL to the image into the document option, PSPDFKit for Web will open the image file as if it were a PDF document:

  document: image

For more information on loading options, follow our guides on importing a PDF document.

Exporting Image Documents

Image documents can be exported as PDF documents by using Instance#exportPDF() and triggering a download, as explained in the save a document to local storage guide.

Framework Support

PSPDFKit for Web is compatible with any JavaScript framework, including React, Angular, Vue.js, Svelte, Blazor, Next.js, Nuxt.js, TypeScript, jQuery, and HTML5. It’s also compatible with ASP.NET, PHP, Ruby on Rails, and Laravel. It just needs a DOM container to append the viewer, which is possible with any framework.


PSPDFKit for Web is compatible with SharePoint, Microsoft Teams, and Microsoft OneDrive.