Skip to content

getPraxis/PDFViewer

Repository files navigation

PDF Viewer Lightning Component

The PDF Viewer lightning component (Aura) can be placed on any Lightning Record Page. The component checks if there are any PDF files attached to the record, and if it find any, it will preview them in a tabbed window.

Sample PDF Viewer Page

Important Note

NOTE: By default Salesforce may download the PDF files instead of presenting them on the screen. If you experience this, the solution is simple:

  1. Navigate to Setup > File Upload and Download Security
  2. You’ll observe that the .pdf file’s 'Download Behavior' is set to 'Hybrid' (see screenshot below)
  3. Click Edit
  4. Change the .pdf behavior to ‘Execute in Browser’
  5. Click Save

Setup Menu - File Download and Upload Security

Setup Menu - Updating the PDF Viewing option

Installation Links - Current Version 0.1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors