@bentopdf/gs-wasm
v0.1.1
Published
Ghostscript compiled to WebAssembly for BentoPDF
Readme
@bentopdf/gs-wasm
Ghostscript compiled to WebAssembly.
Notice
This package is a modified version of Ghostscript, originally developed by Artifex Software, Inc.
It has been adapted for WebAssembly (WASM).
Attribution
Ghostscript is copyright © Artifex Software, Inc. This package is distributed under the GNU Affero General Public License v3.0.
This project is not affiliated with or endorsed by Artifex Software, Inc.
Source Code Availability
This program is licensed under the GNU Affero General Public License v3.0. If you interact with this program over a network, you are entitled to receive the complete corresponding source code.
The source code for this package is available at: https://github.com/alam00000/bentopdf-gs-wasm
This package includes the complete Corresponding Source (build scripts and configuration) in the build_scripts/ directory.
Build Instructions
To rebuild the WASM binary from source:
- Download the source code from the repository or this package.
- Navigate to the
build_scripts/directory. - Follow the instructions in
build_scripts/README.md.
License
This project is licensed under the AGPL-3.0-only license.
Installation
npm install @bentopdf/gs-wasmUsage
import { loadGhostscriptWASM } from '@bentopdf/gs-wasm';
const gs = await loadGhostscriptWASM({
// Optional: Configure CDN loading
baseUrl: 'https://cdn.jsdelivr.net/npm/@bentopdf/[email protected]/assets/'
});