Some test text!
Built in React, the WebViewer UI provides a great developer experience for anyone interested in the source code. You can make adjustments of your own, run it to test, and build it to deploy.
For a better developer experience, we have open sourced the project in Github. It allows you to keep track of your changes better or sync with future versions easier.
A fork is a copy of a repository. Forking a repository allows you to freely experiment with changes without affecting the original project. To fork and sync with PDFTron's webviewer-ui repo, follow these steps:
Run the following:
git clone https://github.com/YOUR-USERNAME/webviewer-ui cd webviewer-ui git remote add upstream https://github.com/PDFTron/webviewer-ui
See Forking a repo for more information.
The default branch of the repo is the latest stable WebViewer version. For example, if the default branch is
7.1, then it means the latest official WebViewer version is
You should switch the branch to be the WebViewer version you are currently using for your application. For example, if you are using WebViewer
7.0 then you should switch to the
7.0 branch and modify the code there. If you are using the legacy UI, then you need to switch to
Code in the
master branch is considered to be experimental and is not safe to be used in production. Generally we don't recommend that you modify the code in the
To run the project,
npm run download-webviewer
To build the source files into
npm run build
When you want to merge any changes from the original PDFTron's webviewer-ui repo, follow these steps:
Run the following:
git fetch upstream master git checkout master git merge upstream/master
See Syncing a fork for more information.
If you want your changes to be implemented into PDFTron's webviewer-ui so that they are available in future releases, see Creating a pull request.
npm run build, copy all the files in the
webviewer-ui/build folder to the
lib/ui folder in your app. Restart your app and you should see the new changes. You can write a script to automate this process.
Get the answers you need: Support
Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.
Select a platform to get started with your free trial.
Unlimited usage. No email address required.
Join our upcoming webinar to learn about how to collaborate on videos frame by frame directly in your browserSave your seat