pdf-annotate.js
Annotation layer for pdf.js
Objectives
- Provide a low level annotation layer for pdf.js.
- Optional high level UI for managing annotations.
- Agnostic of backend, just supply your own
StoreAdapter
to fetch/store data. - Prescribe annotation format.
Example
;;; const UI = PDFJSAnnotate;const VIEWER = document;const RENDER_OPTIONS = documentId: 'MyPDF.pdf' pdfDocument: null scale: 1 rotate: 0; PDFJSworkerSrc = 'pdf.worker.js';PDFJSAnnotate; PDFJS;
See more examples.
Documentation
Developing
# clone the repo $ git clone https://github.com/instructure/pdf-annotate.js.git$ cd pdf-annotate.js # intall dependencies $ npm install # start example server $ npm start$ open http://127.0.0.1:8080 # run tests $ npm test
License
MIT