Some test text!

keyboard_arrow_down

Getting started

keyboard_arrow_down

Deployment options

keyboard_arrow_down

Webviewer Server

keyboard_arrow_down

Fundamentals

keyboard_arrow_down

Basics

keyboard_arrow_down

Annotations

keyboard_arrow_down

UI

keyboard_arrow_down

Legacy UI

keyboard_arrow_down

Advanced

keyboard_arrow_down

PDFNetJS Full

keyboard_arrow_down

PDF Processing API

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://www.pdftron.com/4.0/lib/webviewer.min.js'></script>

<div id='viewer' style='width: 1024px; height: 600px;'></div>
<script>
  var viewerElement = document.getElementById('viewer');
  var myWebViewer = new PDFTron.WebViewer({
    path: 'https://www.pdftron.com/4.0/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', // this URL must be publicly accessible to work with the pdftronServer at demo.pdftron.com
    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.

demo.pdftron.com requires a public URL for documents
When using the public demo server in the pdftronServer option to run your WebViewer app, the files used must be publically accessible and cannot be only locally accessible. The public demo server does not have access to local URLs, since it is not run within your local network.