We recommend the Overview page to learn how to correctly use a config.js
before getting started with using Webviewer.
To view and load .tiff
files first will be different than loading a standard document file. First you'll need to configure the lwc component pdftronWvInstance
to divert any tiff files uploaded or selected files and create another iframeWindow.postMessage
to the config file and transport the tiff file payload.
In your config file, recieveMessage
method would receive the tiff file payload. You can then use the full API to manually create a document, add the TIFF image to the document and load the document in WebViewer:
If you want to download from the Webviewer instance, it would be converted to a pdf
file.
You can review the Salesforce PDF App to showcase an end-to-end example of search, and how you can leverage it for redaction and content replacing on our Github repository.
Check out this live Demo (hosted outside of Salesforce).
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales