Some test text!

Loading...
Guides
Add a video license key

Add video license key

No trial license key required.
The trial of PDFTron SDK works without a license key. A commercial license key is required for use in a production environment. Please fill out our licensing form if you do not have a valid license key.
Keep your commercial license key confidential.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).

A watermark will be visible when no license key is entered and will be removed when you enter a valid license key.

String option

Pass your license key as a string to the initializeVideoViewer function.

For example if your license key is

key@domain.com///150:191:91:208:107:135:56:7:89:101:211:148:2:202:107...

then you would call:

WebViewer({
  path: '...'
}).then((instance) => {
  const {
      loadVideo,
  } = await initializeVideoViewer(
      instance,
      {
        license: `key@domain.com///150:191:91:208:107:135:56:7:89:101:211:148:2:202:107...`,
      }
  );
})

Please make sure you’re using the entire key string, but with no extra whitespace included (i.e. at the end, which can happen when you copy/paste out of an email or the website)

File option

Alternatively instead of passing a string, one can a pass a file url. The contents of the file should only be the entire license key.

WebViewer({
  path: '...'
}).then((instance) => {
  const {
      loadVideo,
  } = await initializeVideoViewer(
      instance,
      {
        license: `/path/to/license.txt`
      }
  );
})

Get the answers you need: Support

Upcoming Webinar: How Developers Add Office Viewing Without Downloading | June 9th at 11 am PT

PDFTron SDK

The Platform

NEW

© 2022 PDFTron Systems Inc. All rights reserved.

Privacy

Terms of Use