Mercurial > hgrepos > Python2 > PyMuPDF
view mupdf-source/platform/wasm/README.md @ 23:3b13504f9d89
Use the official packaging.version.Version to parse version strings.
While there revert the previons change to _int_rc(): it is not needed
now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 19 Sep 2025 12:40:07 +0200 |
| parents | b50eed0cc0ef |
| children |
line wrap: on
line source
# MuPDF.js Welcome to the official MuPDF.js library from [Artifex](https://artifex.com). Use [MuPDF](https://mupdf.com) 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](https://www.gnu.org/licenses/agpl-3.0.html) and commercial license agreements. > If you cannot meet the requirements of the AGPL, please contact > [Artifex](https://artifex.com/contact/mupdf-inquiry.php) 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](examples/) to help you get started. ## Documentation - [MuPDF.js Reference](https://mupdf.readthedocs.io/en/latest/reference/javascript/) - [Getting Started & Examples](https://mupdfjs.readthedocs.io/en/latest/) ## Contact Join the Discord at [#mupdf.js](https://discord.gg/zpyAHM7XtF) to chat with the developers directly.
