Some test text!

Quick start

An evaluation or commercial license key is required to run PDFTron. If you are evaluating the SDK and do not have a key, please obtain one, and then visit this page via the link included in the trial email. If your company has licensed PDFTron then you already received your key in an email from team@pdftron.com. See sign in for more details.

Copy the following code to your HTML page to quickly have WebViewer up and running.

<!-- when ready, replace all references to https://demo.pdftron.com below with your own server -->
<script src='https://demo.pdftron.com/demo/WebViewer/lib/html5/external/jquery-3.2.1.min.js'></script>
<script src='https://demo.pdftron.com/demo/WebViewer/lib/WebViewer.js'></script>

<div id='viewer' style='width: 1024px; height: 600px;'></div>
<script>
  var viewerElement = document.getElementById('viewer');
  var myWebViewer = new PDFTron.WebViewer({
    path: 'https://demo.pdftron.com/demo/WebViewer/lib',
    l: 'YOUR_LICENSE_KEY_HERE', //replace with your free trial license key from https://www.pdftron.com/form/download-trial
    initialDoc: 'https://pdftron.s3.amazonaws.com/downloads/pl/webviewer-demo.pdf', // replace with your own PDF file or continue to integration guide for setting up document loading using relative paths on your server
    pdftronServer: 'https://demo.pdftron.com' // remove option to run client-side only, or replace later with your own server
  }, viewerElement);
</script>

Once you're ready to start integrating you can download WebViewer.