Skip to content

Commit 169986a

Browse files
committed
2 parents aa07291 + c35ce1a commit 169986a

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
[![build
44
status](https://img.shields.io/travis/com/Submitty/pdf-annotate.js.svg?style=flat-square)](https://travis-ci.com/Submitty/pdf-annotate.js)
55

6-
<!---
7-
[![code
8-
coverage](https://img.shields.io/coveralls/mzabriskie/pdf-annotate.js.svg?style=flat-square)](https://coveralls.io/r/mzabriskie/pdf-annotate.js)
9-
-->
10-
11-
Annotation layer for [pdf.js](https://github.com/mozilla/pdf.js)
6+
Annotation layer for [pdf.js](https://github.com/mozilla/pdf.js). Fork of [instructure/pdf-annotate.js](https://github.com/instructure/pdf-annotate.js/) and DynamicEnvironmentSystems/pdf-annotate.js, developed for usage within Submitty.
127

138
## Objectives
149

@@ -20,7 +15,7 @@ Annotation layer for [pdf.js](https://github.com/mozilla/pdf.js)
2015
## Example
2116

2217
```js
23-
import __pdfjs from 'pdfjs-dist/build/pdf';
18+
import pdfjsLib from 'pdfjs-dist/build/pdf';
2419
import PDFJSAnnotate from 'pdfjs-annotate';
2520
import MyStoreAdapter from './myStoreAdapter';
2621

@@ -33,10 +28,10 @@ const RENDER_OPTIONS = {
3328
rotate: 0
3429
};
3530

36-
PDFJS.workerSrc = 'pdf.worker.js';
31+
pdfjsLib.workerSrc = 'pdf.worker.js';
3732
PDFJSAnnotate.setStoreAdapter(MyStoreAdapter);
3833

39-
PDFJS.getDocument(RENDER_OPTIONS.documentId).then((pdf) => {
34+
pdfjsLib.getDocument(RENDER_OPTIONS.documentId).then((pdf) => {
4035
RENDER_OPTIONS.pdfDocument = pdf;
4136
VIEWER.appendChild(UI.createPage(1));
4237
UI.renderPage(1, RENDER_OPTIONS);

0 commit comments

Comments
 (0)