Overview
ComPDF Web Viewer is a JavaScript PDF library. The Salesforce-specific build of WebViewer can be easily integrated into your application as a Lightning Web Component. It enables developers to quickly embed a full-featured PDF viewer into Salesforce applications, Lightning Web Components (LWC), or Experience Cloud sites—allowing users to view, annotate, sign, and manage PDF files directly in the browser, with no plugins or downloads required.
Advantages of ComPDF Web Viewer in Salesforce
Seamless Salesforce Integration
Easily embed the viewer into Salesforce record pages, Lightning Web Components, or Flow screens without leaving the Salesforce environment.
Secure and Compliant
Load PDF files securely from Salesforce storage—such as ContentVersion, Attachment, or via external services like S3—ensuring full data privacy and permission control.
Flexible UI Customization
Developers can tailor the viewer’s toolbar, buttons, and behaviors to match their organization’s Salesforce branding and workflow.
Plugin-Free and Cross-Browser
Built with modern Web technologies (HTML5 + WebAssembly), ComPDF Web Viewer runs smoothly across browsers and devices, including desktops, tablets, and mobile phones.
Rapid Integration and Low-Code Deployment
With an extensible JavaScript SDK and ready-to-use Salesforce LWC + Apex examples, developers can integrate and deploy the viewer within hours.
Key Features in Salesforce
PDF Document Operations
Includes the full functionality of ComPDF PDF Viewer.
Support loading PDF files directly from Salesforce Files, Attachments, or external URLs.
Support saving documents from the ComPDF PDF Viewer to Salesforce Files.