Effortless Office document viewing in JavaScript

Nutrient Web SDK enables seamless client-side rendering of Word, Excel, and PowerPoint documents directly in modern browsers, eliminating the need for external dependencies or Microsoft Office licenses. With our JavaScript Office document viewer, developers can quickly embed a customizable and responsive Office file viewer into any JavaScript-based web application, ensuring smooth integration and enhanced user experience.

Try for free Launch demo

Nutrient SDKs are trusted by world’s most popular applications, including Autodesk, Disney, UBS, Dropbox, IBM, and Lufthansa. Nutrient’s powerful solutions enable seamless integration of PDF editing features into your applications, delivering reliability and efficiency to world-class enterprises.

Key capabilities

  • Independent rendering — Built from scratch, with no reliance on LibreOffice or Microsoft Office

  • Client-side processing — Offload workloads to the client, eliminating the need for server-side processing

  • Customizable Office document viewer user interface (UI) — Easily hide or add buttons to match your application’s design

  • Extendable functionality — Convert Office documents to PDF for annotation, editing, and collaboration workflows

  • Mobile-friendly — Responsive UI that adjusts seamlessly to different screen sizes

  • Accessibility — Integrated features for assistive technology ensure inclusive user experiences

  • File format versatility — Open and display PDFs, PNGs, JPGs, and TIFFs with ease

  • Cross-browser compatibility — Functions flawlessly on all modern browsers and devices

Information

Ensure the Office Files component is enabled in your license to access these capabilities.

Office file type support

  • Word files — Supports DOCX, DOC, DOTX, and DOCM formats

  • Excel files — Compatible with XLSX, XLS, and XLSM spreadsheets

  • PowerPoint files — Handles PPTX, PPT, and PPTM presentations

  • Additional file formats — Open and render PDFs, PDF/A (1, 2, 3, 4), TIFF (multipage), JPG, and PNG images seamlessly

Framework support

Our JavaScript Office document viewer works seamlessly with all major frameworks, including React, Angular, Vue.js, Svelte, Blazor, Next.js, TypeScript, Nuxt.js, and jQuery. It’s also compatible with backend platforms such as Electron, ASP.NET, PHP, Laravel, Rails, and HTML5 applications.

Integrations

Nutrient Web SDK is compatible with SharePoint, Microsoft Teams, Microsoft OneDrive, and Salesforce.

Opening and viewing Office documents with Nutrient Web SDK

Easily load Office documents such as Word, Excel, and PowerPoint files using Nutrient Web SDK. Use the load method with a Configuration object to specify the document’s location on the page, the source path, the license key, and other settings. This streamlined process enables seamless integration for viewing Office documents in your applications. For additional details, 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 PDF/A document, see converting Office documents to PDFs.

FAQ

What types of Office documents can Nutrient Web SDK open? Nutrient Web SDK supports DOCX, DOC, DOTX, DOCM, XLSX, XLS, XLSM, PPTX, PPT, and PPTM, along with PDFs, TIFFs, JPGs, and PNGs.
Do I need MS Office installed to view documents? No, Nutrient Web SDK renders Office documents client-side without relying on MS Office, LibreOffice, or any external software.
Can I customize the viewer’s UI? Yes, you can hide or add buttons, modify themes, and adjust the viewer to match your application’s design and functionality.
Is the SDK compatible with my JavaScript framework? Nutrient Web SDK works seamlessly with frameworks like React, Angular, Vue.js, Svelte, and others, as well as Electron and ASP.NET.
Does Nutrient Web SDK support document conversion? Yes, you can convert Office files to PDFs for additional features like annotation, collaboration, and editing.

Free trial

Start your free trial for unlimited access and expert support.