You can also download a ready-to-go sample on GitHub.
Prerequisites
Prior to starting, you should have already installed Node and npm.
Get your Apryse trial key.
License Key
Apryse collects some data regarding your usage of the SDK for product improvement.
The data that Apryse collects include:
The names and number of API calls
The number of pages in a document
The version of the SDK
The language of the SDK
For clarity, no other data is collected by the SDK and Apryse has no access to the contents of your documents.
If you wish to continue without data collection, contact us and we will email you a no-tracking trial key for you to get started.
Quick start video
This video teaches you the fundamentals of installing and initializing WebViewer in any web application. If you wish, you may skip this section and proceed to the steps below.
Next, navigate into the Vue sample folder and run npm install:
sh
1cd webviewer-vue
2npm install
This will automatically download and extract the Apryse WebViewer Package.
2. Run the Sample
Run the application by executing:
sh
1npm run serve
Then open a browser and go to localhost:8080 to see the application.
3. Usage
To call more WebViewer APIs, open /www/js/index.js in your favorite text editor and add the API calls to the callback for the WebViewer instantiation. Add your own license key in place of 'YOUR_LICENSE_KEY':
1export default {
2 name: 'WebViewer',
3 props: {
4 path: String,
5 url: String
6 },
7 mounted: function () {
8 WebViewer({
9 path: this.path,
10 licenseKey: 'YOUR_LICENSE_KEY', // sign up to get a key at https://dev.apryse.com
11 initialDoc: this.url, // replace with your own PDF file