Welcome to Apryse. This guide will help you integrate a free trial of WebViewer into Salesforce Lightning Components. It will help you clone the Salesforce sample repository and show you how to integrate WebViewer as a lightning web component. Your free trial includes unlimited trial usage and support from solution engineers.
For step-by-step help on setting up a Salesforce development environment, see one of the following:
The trial of Apryse SDK requires a trial license key, which is provided in the box titled "License Key". A commercial license key is required for use in a production environment. Please contact sales to purchase a commercial key or if you need any other license key assistance.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).
Because of Salesforce governor limits there is a limited file size able to be loaded and so the optimized workers need to be used. Make sure to answer "n" to whether you would like to exclude the optimized workers. More details on Salesforce governor limits.
After answering these prompts, answer y to the final confirmation prompt and the script will optimize and zip the source code you’ll need later to a new webviewer-salesforce
directory.
Note that this optimization produces .zip
files of no more than 5 mb in size in addition to the .resource-meta.xml
-- this meets the requirements to safely upload to the Salesforce platform.
Note that in certain circumstances, you may need the full PDF API. For more details on when you may need to enable it, please see our guide here .
Please ensure you set this boolean to false like so:
To ensure WebViewer is initialized and instructed to look for the pdf_lean files, and not the pdf_full files.
webviewer-salesforce
sample:.zip
files that were output by the optimizing script in the webviewer-salesforce
folder to the force-app/main/default/staticresources
folder of the cloned project.Note how every .zip
file, and the myfiles/
directory, has a corresponding .resource-meta.xml
file, wherein the contents of each .xml
file are the same.
devhub
by typing dev hub
in the quick find search and toggle to enable
as shown in the picture below.config/project-scratch-def.json
file, set the username as your default, and assign it an alias:Apryse
.You should see the application start up:
See our Salesforce overview page for information on how to follow our general WebViewer guides when WebViewer is integrated into Salesforce.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales