@@ -11,7 +11,7 @@ To report issues for pdf-annotate.js, please file them under the [Submitty/Submi
11
11
12
12
## Objectives
13
13
14
- - Provide a low level annotation layer for [ pdf .js] ( https://github.com/mozilla/pdf.js ) .
14
+ - Provide a low level annotation layer for [ PDF .js] ( https://github.com/mozilla/pdf.js ) .
15
15
- Optional high level UI for managing annotations.
16
16
- Agnostic of backend, just supply your own ` StoreAdapter ` to fetch/store data.
17
17
- Prescribe annotation format.
@@ -21,7 +21,6 @@ To report issues for pdf-annotate.js, please file them under the [Submitty/Submi
21
21
``` js
22
22
import pdfjsLib from ' pdfjs-dist/build/pdf' ;
23
23
import PDFJSAnnotate from ' pdfjs-annotate' ;
24
- import MyStoreAdapter from ' ./myStoreAdapter' ;
25
24
26
25
const { UI } = PDFJSAnnotate;
27
26
const VIEWER = document .getElementById (' viewer' );
@@ -33,7 +32,7 @@ const RENDER_OPTIONS = {
33
32
};
34
33
35
34
pdfjsLib .workerSrc = ' pdf.worker.js' ;
36
- PDFJSAnnotate .setStoreAdapter (MyStoreAdapter );
35
+ PDFJSAnnotate .setStoreAdapter (PDFJSAnnotate . LocalStoreAdapter );
37
36
38
37
pdfjsLib .getDocument (RENDER_OPTIONS .documentId ).promise .then ((pdf ) => {
39
38
RENDER_OPTIONS .pdfDocument = pdf;
@@ -42,7 +41,7 @@ pdfjsLib.getDocument(RENDER_OPTIONS.documentId).promise.then((pdf) => {
42
41
});
43
42
```
44
43
45
- See more [ examples ] ( https://github.com/Submitty/pdf-annotate.js/tree/master/examples ) .
44
+ See [ /web ] ( https://github.com/Submitty/pdf-annotate.js/tree/master/web ) for an example web client for annotating PDFs .
46
45
47
46
## Documentation
48
47
0 commit comments