Skip to content
A sample WebViewer app in Cordova.
CSS HTML JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
hooks
res initial commit Dec 22, 2018
www
.gitignore
.npmignore
CONTRIBUTING.md
LICENSE
README.md
config.xml
package.json

README.md

WebViewer - Cordova sample

WebViewer is a powerful JavaScript-based PDF Library that's part of the PDFTron PDF SDK. It provides a slick out-of-the-box responsive UI that interacts with the core library to view, annotate and manipulate PDFs that can be embedded into any web project.

WebViewer UI

This repo is specifically designed for any users interested in integrating WebViewer into Cordova project. This project was generated with Cordova CLI. See Create your first Cordova app for more information.

** If you want offline support, you must use Custom server instead. You can view the offline sample in the offline branch.

Initial setup

Before you begin, make sure your development environment includes Node.js and Cordova CLI.

Install

git clone https://github.com/PDFTron/webviewer-cordova-sample.git
cd webviewer-cordova-sample
npm install

Run

npm start

To run in platforms other than browser, You can refer to official Cordova guides:

WebViewer APIs

See API documentation.

Contributing

See contributing.

License

See license.

You can’t perform that action at this time.