How To Guide#
The code samples in this “How To Guide” assume that you are working with Node.js in the root folder of your project and you have Installed MuPDF.js via NPM.
Node.js is a runtime environment which allows you to run JavaScript outside the of the web browser. It is commonly used for server-side JavaScript solutions and RESTful APIs.
Additionally the following requirements should be defined in your TypeScript / JavaScript file header:
import * as fs from "fs"
import * as mupdfjs from "mupdf/mupdfjs"
How to with Node.js
- Developing with TypeScript
- Working with Files
- Working with Documents
- Passwords & Security
- Document Metadata
- Get the Document Page Count
- Load a Page of a Document
- Splitting a Document
- Merging Documents
- Extracting Document Text
- Extracting Document Images
- Extracting Document Annotations
- “Baking” a Document
- Attaching a File to a Document
- Removing a File from a Document
- Searching a Document
- Getting Document Links
- Working with Pages
- Loading a Page
- Getting the Page Bounds
- Convert a Page to an Image
- Extracting Page Text
- Extracting Page Images
- Extracting Page Annotations
- Adding Text to Pages
- Adding Images to Pages
- Adding Pages
- Copying Pages
- Deleting Pages
- Rotating Pages
- Cropping Pages
- Implement a Device to print out PDF page contents
- Working with Annotations
Migrating from mupdf-js
Was this page helpful?