Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit 89b71b6

Browse files
Corrected compile errors
1. Updated the UI to the variable. 2. Updated the jQuery. 3. Updated the contact sales statement. 4. Added the automatically loading of localhost. 5. Updated the dependencies versions. 6. Updated readme contents, links and structure.
1 parent 4cdd32b commit 89b71b6

File tree

5 files changed

+30
-30
lines changed

5 files changed

+30
-30
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Copyright 2018 PDFTron Systems Inc. All rights reserved.
2-
WebViewer UI project/codebase or any derived works is only permitted in solutions with an active commercial PDFTron WebViewer license. For exact licensing terms please refer to your commercial WebViewer license. For use in other scenario, please contact sales@pdftron.com
2+
WebViewer UI project/codebase or any derived works is only permitted in solutions with an active commercial PDFTron WebViewer license. For exact licensing terms refer to the commercial WebViewer license. For licensing, pricing, or product questions, Contact [Sales](https://apryse.com/form/contact-sales).

README.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# WebViewer - jQuery sample
22

3-
[WebViewer](https://www.pdftron.com/webviewer) is a powerful JavaScript-based PDF Library that's part of the [PDFTron PDF SDK](https://www.pdftron.com). 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.
3+
[WebViewer](https://docs.apryse.com/documentation/web/) is a powerful JavaScript-based PDF Library that is part of the [Apryse SDK](https://apryse.com/). 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 web projects.
44

5-
![WebViewer UI](https://www.pdftron.com/downloads/pl/webviewer-ui.png)
5+
![WebViewer UI](https://pdftron.s3.amazonaws.com/downloads/pl/webviewer-ui.png)
66

7-
This repo is specifically designed for any users interested in integrating WebViewer into a jQuery project. See [jQuery](https://jquery.com/) for more information.
7+
This repo is designed for users interested in integrating WebViewer into jQuery project. For more information, refer to [jQuery](https://jquery.com/).
88

99
## Initial setup
1010

11-
Before you begin, make sure your development environment includes [Node.js](https://nodejs.org/en/).
11+
Before beginning, [Node.js](https://nodejs.org/en/) should be installed to the development environment.
1212

1313
## Install
1414

1515
```
16-
git clone https://github.com/PDFTron/webviewer-jquery-sample.git
16+
git clone https://github.com/ApryseSDK/webviewer-jquery-sample
1717
cd webviewer-jquery-sample
1818
npm install
1919
```
@@ -24,15 +24,11 @@ npm install
2424
npm start
2525
```
2626

27-
Navigate to `http://localhost:3000/`. The app will automatically reload if you change any of the source files.
27+
It will load `http://localhost:3000/`. The application will automatically reload when possible changes occurred to the source files.
2828

29-
## WebViewer APIs
29+
## Full API for PDF processing
3030

31-
See [API documentation](https://www.pdftron.com/documentation/web/guides/ui/apis).
32-
33-
## Enabling full API
34-
35-
PDFNetJS Full is a complete browser side PDF SDK, unlocking viewing, parsing and editing of PDF files. To enable full API, you can modify constructor in components.js:
31+
PDFNetJS Full is a complete browser side PDF SDK, unlocking viewing, parsing and editing of PDF files. To enable full API, modify the constructor in app.js:
3632

3733
```diff
3834
WebViewer({
@@ -42,13 +38,16 @@ WebViewer({
4238
}, document.getElementById('viewer'))
4339
```
4440

45-
You can refer to this [guide for more information](https://www.pdftron.com/documentation/web/guides/full-api)
41+
For more information, refer to [Full API for PDF processing](https://docs.apryse.com/documentation/web/guides/full-api/) and [Class: WebViewerInstance](https://docs.apryse.com/api/web/WebViewerInstance.html).
42+
43+
## Showcase
44+
45+
For a live demo of the WebViewer capabilities, refer to the [Apryse WebViewer Demo: JavaScript PDF Viewer Demo](https://showcase.apryse.com/).
4646

4747
## Contributing
4848

49-
See [contributing](./CONTRIBUTING.md).
49+
Submission to this repo is governed by these [guidelines](/CONTRIBUTING.md).
5050

5151
## License
5252

53-
See [license](./LICENSE).
54-
![](https://onepixel.pdftron.com/webviewer-jquery-sample)
53+
For licensing, refer to [License](LICENSE).

app/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ WebViewer({
1313
// const Annotations = instance.Core.Annotations;
1414

1515
// change to dark theme
16-
instance.setTheme('dark');
16+
instance.UI.setTheme('dark');
1717

1818
documentViewer.addEventListener('documentLoaded', function() {
1919
// call methods relating to the loaded document

app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
22
<html>
33
<head>
4-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
4+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
55
<script src='lib/webviewer.min.js'></script>
66
<link rel="stylesheet" type="text/css" href="index.css" />
77
</head>

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@
22
"name": "webviewer-jquery-sample",
33
"version": "1.0.0",
44
"scripts": {
5-
"start": "npm run server",
6-
"server": "./node_modules/.bin/supervisor -k -e html,js -i .git/,node_modules/ -- server.js",
5+
"start": "concurrently \"npm run server\" \"start http://localhost:3000\"",
6+
"server": "supervisor -k -e html,js -i .git/,node_modules/ -- server.js",
77
"postinstall": "node tools/copy-webviewer-files.js"
88
},
9-
"devDependencies": {
10-
"body-parser": "1.18.3",
11-
"express": "^4.16.3",
12-
"morgan": "^1.9.1",
13-
"opn": "^5.3.0",
14-
"supervisor": "0.12.0",
15-
"fs-extra": "^10.0.0"
16-
},
179
"repository": {
1810
"type": "git",
1911
"url": ""
2012
},
2113
"author": "PDFTron Systems Inc.",
14+
"devDependencies": {
15+
"body-parser": "^1.20.2",
16+
"express": "^4.19.2",
17+
"fs-extra": "^11.2.0",
18+
"morgan": "^1.10.0",
19+
"open": "^10.1.0",
20+
"supervisor": "^0.12.0"
21+
},
2222
"dependencies": {
23-
"@pdftron/webviewer": "^8.0.0"
23+
"@pdftron/webviewer": "^10.11.1",
24+
"concurrently": "^8.2.2"
2425
}
2526
}

0 commit comments

Comments
 (0)