WebViewer document generation sample in Salesforce
- Clone project
git clone git@github.com:tommywintersr/salesforce-webviewer-docgen.git
cd salesforce-webviewer-docgen
- Authenticate project to your org from SFDX CLI or VS Code UI.
- Deploy to your Org
- Non-tracking org (Sandbox, Production, Dev Org etc) -
force:source:deploy
- Tracking org (Scratch Org) -
force:source:push
- VS Code: right click on your
force-app/main/default
folder and selectSFDX: Deploy Source to Org
- Once deployed, navigate to any Lightning Page (for example your Home page) in your org. Select the setup gear wheel, and click on
Edit Page
.
You need to drag and drop the following components onto the page:
pdftronWvFileBrowserComponent
- used for browsing files, filling documents, file upload and file searchpdftronWvInstance
- LWC that inserts WebViewer into your DOM
The sfdx-project.json
file contains useful configuration information for your project. See Salesforce DX Project Configuration in the Salesforce DX Developer Guide for details about this file.