rti-lab-pdf-kit-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Rti Lab Pdf Kit Js

Vanilla js library exporting Pdf viewer using PDF.js.

Table of Contents

Setup

nvm and pnpm are required.

  • Instal nvm.

  • Run nvm i and npm install -g pnpm.

Development

nvm use
pnpm install

During development run this command to start dev server with a sample application

pnpm dev

Build

This project can build for esm, commonjs,iife, umd targeting es6. Additionally can target es5 (TARGET=es5 pnpm build).

pnpm build-all

Usage example

import { PdfViewer } from "../src/index.js";

const container = document.getElementById("app") as HTMLDivElement;
const pdfViewer = new PdfViewer({ container });
pdfViewer.open("<pdf_url>").then(...).catch(...);

Readme

Keywords

none

Package Sidebar

Install

npm i rti-lab-pdf-kit-js

Weekly Downloads

1

Version

1.0.0

License

UNLICENSED

Unpacked Size

7.32 MB

Total Files

13

Last publish

Collaborators

  • lzdshare