Skip to content

Olafr9500/LPDF

Repository files navigation

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'