All Projects → Submitty → Pdf Annotate.js

Submitty / Pdf Annotate.js

Licence: mit
Annotation layer for pdf.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Pdf Annotate.js

Cv Boilerplate
Programmatic generation of high-quality CVs
Stars: ✭ 967 (+1873.47%)
Mutual labels:  pdf
Node Prince
Node API for executing PrinceXML via prince(1) CLI
Stars: ✭ 42 (-14.29%)
Mutual labels:  pdf
Owasp Masvs
The Mobile Application Security Verification Standard (MASVS) is a standard for mobile app security.
Stars: ✭ 1,030 (+2002.04%)
Mutual labels:  pdf
Gotenberg Go Client
Go client for the Gotenberg API
Stars: ✭ 35 (-28.57%)
Mutual labels:  pdf
Markdown2pdf
A simple library to convert markdown to pdf using Java
Stars: ✭ 41 (-16.33%)
Mutual labels:  pdf
Naps2
Scan documents to PDF and other file types, as simply as possible.
Stars: ✭ 1,018 (+1977.55%)
Mutual labels:  pdf
Webpdf.js
Foxit webpdf.js provides a world-class JavaScript library for viewing PDF files in web browsers.
Stars: ✭ 31 (-36.73%)
Mutual labels:  pdf
Format parser
file metadata parsing, done cheap
Stars: ✭ 46 (-6.12%)
Mutual labels:  pdf
Cv Template
An easy way to create HTML and PDF versions of your resume, and automatically host them on GitHub Pages.
Stars: ✭ 41 (-16.33%)
Mutual labels:  pdf
Mybox
Easy tools of document, image, file, network, location, color, and media.
Stars: ✭ 45 (-8.16%)
Mutual labels:  pdf
Ng2 Pdf Viewer
📄 PDF Viewer Component for Angular 5+
Stars: ✭ 997 (+1934.69%)
Mutual labels:  pdf
Mkdocs With Pdf
Generate a single PDF file from MkDocs repository.
Stars: ✭ 39 (-20.41%)
Mutual labels:  pdf
Elixirbooks
List of Elixir books
Stars: ✭ 1,021 (+1983.67%)
Mutual labels:  pdf
Pdfforms
Populate fillable pdf forms from csv data file
Stars: ✭ 33 (-32.65%)
Mutual labels:  pdf
Pdfsave
Convert websites into readable PDFs
Stars: ✭ 46 (-6.12%)
Mutual labels:  pdf
React Native Pdf
A <Pdf /> component for react-native
Stars: ✭ 960 (+1859.18%)
Mutual labels:  pdf
Reportbro Lib
PDF and Excel report generation library. Reports can be designed with reportbro-designer, a javascript plugin.
Stars: ✭ 43 (-12.24%)
Mutual labels:  pdf
Mobius
Scripts to extract data from the COVID-19 Google Community Mobility Reports
Stars: ✭ 47 (-4.08%)
Mutual labels:  pdf
Sile
Simon’s Improved Layout Engine
Stars: ✭ 1,032 (+2006.12%)
Mutual labels:  pdf
Html2pdfrenderer
Take any HTML loaded in WKWebView and make PDF out of it.
Stars: ✭ 44 (-10.2%)
Mutual labels:  pdf

pdf-annotate.js

Build Status codecov

Annotation layer for PDF.js.

Combined fork of archived instructure/pdf-annotate.js and deleted DynamicEnvironmentSystems/pdf-annotate.js. Under active development for usage within Submitty.

To report issues for pdf-annotate.js, please file them under the Submitty/Submitty repository.

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

import pdfjsLib from 'pdfjs-dist/build/pdf';
import PDFJSAnnotate from 'pdfjs-annotate';

const { UI } = PDFJSAnnotate;
const VIEWER = document.getElementById('viewer');
const RENDER_OPTIONS = {
  documentId: 'MyPDF.pdf',
  pdfDocument: null,
  scale: 1,
  rotate: 0
};

pdfjsLib.workerSrc = 'pdf.worker.js';
PDFJSAnnotate.setStoreAdapter(PDFJSAnnotate.LocalStoreAdapter);

pdfjsLib.getDocument(RENDER_OPTIONS.documentId).promise.then((pdf) => {
  RENDER_OPTIONS.pdfDocument = pdf;
  VIEWER.appendChild(UI.createPage(1));
  UI.renderPage(1, RENDER_OPTIONS);
});

See /web for an example web client for annotating PDFs.

Documentation

View the docs.

Developing

# clone the repo
$ git clone https://github.com/Submitty/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

# lint the code
$ npm run lint
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].