Skip to content

PSPDFKit for Salesforce Example

Notifications You must be signed in to change notification settings

PSPDFKit/salesforce

Repository files navigation

PSPDFKit for Salesforce Integration

Integrate into a New Salesforce Project as a Lightning Web Component

PSPDFKit for Salesforce enables you to open PDF, JPG, PNG, and TIFF files inside Salesforce. This unlocks the full functionality of PSPDFKit in Salesforce, including PDF generation, redaction, and signatures.

This README explains how to integrate PSPDFKit into a new Salesforce project. The integration works as a Lightning web component (LWC) that you can add to any Salesforce organization.

For more information on integrating PSPDFKit into an existing Salesforce project, see the PSPDFKit for Salesforce documentation.

PSPDFKit for Salesforce shares the same APIs as PSPDFKit for Web Standalone. For more information on customizing your Salesforce application, see the PSPDFKit for Web Standalone documentation.

Requirements

Before continuing, perform all of the following actions:

Deploying the Package

To deploy the PSPDFKit package to your Salesforce organization, follow these steps.

  1. Download the PSPDFKit for Salesforce project from GitHub, and then unpack the ZIP file.

    Alternatively, run the following terminal command to clone the PSPDFKit for Salesforce repository from GitHub:

    git clone https://github.com/PSPDFKit/salesforce.git
  2. In the terminal, go to the PSPDFKit for Salesforce project folder and run the following command to install the PSPDFKit npm module.

    Use the following code for npm:

    npm install
    

    Use the following code for Yarn:

    yarn install
    
  3. Run the following command in the terminal to start the Salesforce authentication process:

    sfdx force:auth:web:login --setalias mySalesforceOrg --instanceurl https://login.salesforce.com --setdefaultusername
  4. In the browser window that opens, log in to your Salesforce organization and authorize the Salesforce CLI.

  5. In the terminal, run the following command from the PSPDFKit for Salesforce project’s root folder:

    sfdx force:source:deploy -x manifest/package.xml

Enabling Users to Use PSPDFKit

To enable users of your Salesforce organization to use PSPDFKit, follow these steps.

  1. In Salesforce, go to Users > Permission Sets.

  2. Find PSPDFKit Admin Access in the list and click it.

  3. Click Manage Assignments.

  4. Click Add Assignment.

  5. Select the users you want to authorize to use PSPDFKit.

  6. Click Next, and then click Assign.

Changing the Security Settings

PSPDFKit for Salesforce requires Lightning Locker to protect Lightning web components, but Salesforce uses Lightning Web Security by default. To change the default security settings, follow these steps.

  1. In Salesforce, go to Security > Session Settings.

  2. Deselect Use Lightning Web Security for Lightning web components.

  3. Scroll down and click Save.

Using the PSPDFKit for Salesforce Integration

To use PSPDFKit in your Salesforce organization, follow these steps.

  1. Ensure you’re logged in as a user authorized to use PSPDFKit.

  2. In the top-right corner, open the App Launcher.

  3. Search for and select PSPDFKit.

  4. Click browse to upload local PDF files, or open a file from Salesforce.

Next Steps

About

PSPDFKit for Salesforce Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •