JavaScript Office Viewer Library

PSPDFKit for Web includes support for client-side rendering of Word, Excel, and PowerPoint documents directly on any browser — no external dependencies or MS Office licenses required. It offers developers a way to quickly embed a highly configurable Office document viewer in any JavaScript-based web application.

Try for Free Launch Demo

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

Key Capabilities

  • Built from the ground up — No reliance on LibreOffice or MS Office

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

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

  • Extendable — Convert to PDF for collaboration, annotation, editing, and more

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

  • Accessible — Built-in assistive technology-friendly features

  • PDF, PNG, JPG, and TIFF — Open images and PDFs

  • Browser support — Works on all modern browsers and devices

Information

This feature requires the Office Files component to be enabled in your license.

Office File Type Support

  • DOCX, DOC, DOTX, DOCM

  • XLSX, XLS, XLSM

  • PPTX, PPT, PPTM

PSPDFKit for Web also supports PDF, PDF/A (1, 2, 3, 4), TIFF (multipage), JPG, and PNG.

Framework Support

The PDF viewer is compatible with any JavaScript framework, including React, Angular, Vue.js, Svelte, Blazor, Next.js, TypeScript, Nuxt.js, and jQuery. It’s also compatible with Electron, ASP.NET, PHP, Laravel, Rails, and HTML5.

Integrations

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

Opening and Viewing Office Documents with PSPDFKit for Web Standalone

You can load Office documents like you would any other file supported by PSPDFKit for Web. Use the load method, which takes a Configuration object as its parameter. This object specifies where the document is loaded on the page, the path to the source document, the license key, and more. For more information, see the guides on loading a document.

PSPDFKit.load({
  container: "#pspdfkit",
  document: "source.docx",
  licenseKey: "YOUR_LICENSE_KEY"
});

For more information on converting an Office document to a PDF or a PDF/A document, see converting Office documents to PDFs.

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.