1.1.1 • Published 2 years ago
qpdf-wasm-esm-embedded v1.1.1
qpdf-wasm-esm-embedded
This is a fork of qpdf-wasm-esm that uses ESM instead of CommonJS and is compiled to a single file (wasm embedded) with TypeScript typing.
It is adjusted for the browser and has the following differences due to changes in build options:
- It is an ES module instead of a CommonJS module.
- It names the exported default function
QPDFinstead ofModule(default name). - It build
qpdf.mjsinstead ofqpdf.js. - It accepts overloading of the
printandprintErrmethods. - It is a single file (wasm is embedded in the main mjs)
- It provides TypeScript typing
Examples
Build with docker (run ./docker_build.sh) and run see the tests/test.html.
qpdf-wasm-esm
qpdf compiled to WASM via Emscripten. This doesn't expose the qpdf library - just the CLI.
npm install --save qpdf-wasm-esm-embeddedExamples
See the tests directory for examples.