Some test text!

Discord Logo

Chat with us

PDFTron is now Apryse, learn more here.

Web / Guides / Run samples


PDFTron is now Apryse, learn more here.

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 Apryse 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