1.0.1 • Published 2 years ago

lpdf v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

LPDF

LPDF is a simple, lightweight PDF reader UI suitable for tablet use.

Install

npm install lpdf

Usage

Local dependencies

To work, LPDF uses PDF.js. You can initialize it on your head.

<script src="pdfjs/build/pdf.js"></script>
pdfjsLib.GlobalWorkerOptions.workerSrc = 'pdfjs/build/pdf.js';

If pdf.js is not initialized, LPDF will do so via JsDelivr

Import

import the module

import LPDF from './node_modules/lpdf/index.js'