Some test text!

Loading...
Guides
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 (WebViewer.zip). 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.

Samples

Next step

Usage Guides Samples API docs

Get the answers you need: Support

Upcoming Webinar: SDK Features Preview and Live Run-Through | July 14, 2022 at 11 am PT

PDFTron SDK

The Platform

NEW

© 2022 PDFTron Systems Inc. All rights reserved.

Privacy

Terms of Use