sfxsfl 81bd2e02f4 first code checkin 7 kuukautta sitten
..
examples 81bd2e02f4 first code checkin 7 kuukautta sitten
lib 81bd2e02f4 first code checkin 7 kuukautta sitten
tools 81bd2e02f4 first code checkin 7 kuukautta sitten
BUILDING.md 81bd2e02f4 first code checkin 7 kuukautta sitten
Makefile 81bd2e02f4 first code checkin 7 kuukautta sitten
README.md 81bd2e02f4 first code checkin 7 kuukautta sitten
package.json 81bd2e02f4 first code checkin 7 kuukautta sitten
tsconfig.json 81bd2e02f4 first code checkin 7 kuukautta sitten

README.md

MuPDF.js

Welcome to the official MuPDF.js library from Artifex.

Use MuPDF in your JavaScript and TypeScript projects!

This library is powered by WebAssembly and can be used in all the usual JavaScript environments: Node, Bun, Firefox, Safari, Chrome, etc.

License

MuPDF.js is available under Open Source AGPL and commercial license agreements.

If you cannot meet the requirements of the AGPL, please contact Artifex regarding a commercial license.

Installation

npm install mupdf

Usage

The module is only available as an ESM module!

import mupdf from "mupdf"

var doc = mupdf.Document.openDocument("test.pdf")
console.log(doc.countPages())

Check out the example projects to help you get started.

Documentation

Contact

Join the Discord at #mupdf.js to chat with the developers directly.