Some test text!

Run samples

Running WebViewer samples locally

Along with the WebViewer library package are project samples that are available to try. They are found in the samples directory after extracting the Webviewer package. The samples are the same that are found on the PDFTron site and are readily available as a reference to assist you in your project. The samples are also a good way to test, compare, and troubleshoot issues in your own project.

Running samples

You can easily and quickly set up the package to run the samples.

  1. Extract the WebViewer package ( The WebViewer package is prepared to host the samples and WebViewer library (lib folder) out of the box.
  2. Open a terminal at the extracted WebViewer folder location.
  3. Install the required dependencies to run the samples by executing:
npm install
  1. Next run the samples by executing:
npm start

You should see a message that reads

Listening at localhost:3000
  1. Navigate to localhost:3000 and you will be taken to the page with the samples.


Next step

Usage Guides Samples API docs

Get the answers you need: Support

Upcoming Webinar: PDFTron SDK Tech Review | Nov 29, 2022 at 2 pm ET


The Platform


© 2022 PDFTron Systems Inc. All rights reserved.


Terms of Use