Salesforce Document Viewer Lightning Web Component
Nutrient Salesforce SDK includes support for client-side rendering of PDF, 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 document viewer in any Salesforce lightning web component.
Nutrient 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
-
Open and view — Directly in Salesforce from a web browser
-
PDF and MS Office — Open PDF, Word, Excel, and PowerPoint documents
-
Client-side — Workload is offloaded to client (no server needed)
-
Customizable UI — Hide or add buttons, and match your look and feel
-
Responsive — Mobile-friendly UI auto-adjusts to all screen sizes
-
Accessible — Built-in assistive technology-friendly features
-
Browser support — Works on all modern browsers and devices
-
Extendable — Convert to PDF for collaboration, editing, and more
For working with MS Office documents, contact us via Sales or Support for assistance.
File type support
-
PDF, PDF/A (1, 2, 3, 4)
-
DOCX, DOC, DOTX, DOCM, XLSX, XLS, XLSM, PPTX, PPT, PPTM
-
PNG, JPEG, JPG, TIFF, TIF
For working with MS Office documents, contact us via Sales or Support for assistance.
Document viewer guides
PDF files
How to open PDF files
Office documents
How to open MS Office documents
Images and photos
How to display images in the viewer
Page layout and scroll
How to configure single- or double-page spreads and scrolling modes
Mobile responsive
Learn about the responsive capabilities of the user interface
Fullscreen mode
How to implement fullscreen mode using the fullscreen API
Magazine viewer
How to implement a magazine viewer
Presentation mode
How to display presentation slides
Zooming
How to manage zooming and configure automatic zoom
Accessibility
Learn about the viewer’s accessibility features
Performance best practices
Learn the best way to build a fast document viewer
Annotation diff
Learn about transferring annotations efficiently
Caching techniques
How to make your assets load quickly
Rendering PDF pages
How to render single PDF pages as images
Render in canvas
How to render a single PDF page as an image in a canvas element
Coordinate space
How to convert to and from the PDF coordinate space
Watermark rendering
How to render watermarks on top of a PDF
Font rendering
How to configure custom fonts for rendering PDF documents
PDF JavaScript support
How to enable PDF JavaScript support
Permissions
Learn about the document permissions that can be set