PDF Viewer SDK licensing
The PDF Viewer SDK differs in how you can use the license keys and initialize the SDK. Review version 5 and version 4 sections separately depending on which version you use.
Version 5
License overview
The PDF Viewer SDK doesn't require a trial license key. However, a trial or regular license key is required to use the complete feature set. Any license also removes watermarks from browsing capabilities. Review the following table for more details:
No license | Free View-only | Trial | Full | |
---|---|---|---|---|
How to | No license key is needed | Contact sales | Contact sales | Contact sales |
Browsing Capabilities | Visualization and print output are watermarked | Unlimited, no watermark | Unlimited, no watermark | Unlimited, no watermark |
Feature sets | - | - | All | On request |
Domains | - | Multiple | Single | Multiple |
Users | - | Limited | Limited | Flexible user packages |
Duration | Unlimited | Unlimited | Limited | Subscription |
License key
The PDF Viewer SDK displays watermarked pages by default. Use a license key to remove the watermark for free. For more details, review Manage license key section.
Version 4
Without an active license the PDF Viewer SDK version 4 applies a watermark to the viewed PDFs. Try the PDF Viewer SDK for free. See the product demo in action. Install PDF Viewer SDK locally from the npmjs website. Get in touch with the Pdftools sales team through the Contact page to get a full license and remove the watermark.
Review how to enter the license key in the Basic usage documentation.
Troubleshooting
The following sections can help you to fix specific issues related to the PDF Viewer SDK licensing.
License key cannot be set
If the license key cannot be set, the call to the PdfWebViewer
constructor results in an error.
Possible causes
- There is a typographic error in the license key.
- When the key was copied, the operation altered the characters in the key, such as commas.
- The key has a wrong format.
- The key belongs to a different product.
- The key is an evaluation license key that expired.
Solution
Make sure the key is issued for the PDF Viewer and has the following format:
<4H,V4,VIEWWEB,XXXXXXXXXXXXXXXXXXXX>
If an evaluation license key has expired and you want to extend the period of evaluation, use the Contact page to request a new evaluation license key.
License check fails at runtime
In this case, the license can be set and the call to the constructor PdfWebViewer
is successful. However, when opening a PDF file, you are prompted with message: "The current license does not permit running the product on this domain."
Possible causes
- The license key is not meant to be used with the current domain.
Solution
Ensure that the domain on which the PDF Viewer is running matches the domain to which the license key is registered.