This little wrapper allows Ghostscript to be run with WebAssembly in browser, and thus allows PostScript files to be opened with modern browsers directly.
-
Set up the EMScripten environmen following this tutorial.
-
If compiling from latest git repo: set up
git
,autoconf
andautomake
. -
Run
./compile.sh
with the following parameters:
./compile.sh (--version=[latest|version.number]) (--browser=[chrome]) (--debug) (--skip_compile)
where the parameters are as follows:
--version
: specifylatest
to compile from latest git source, or a specific version number such as10.05.0
.- Note: some versions (such as
10.05.1
) do compile but have bugs that prevent the program from running on certain files. Commitdedddcb
of the git repo is the version used for the web store version ofv0.4
of this extension.
- Note: some versions (such as
--browser
: specify the target browser. Currently onlychrome
is supported.--debug
: compile the debug version, which prints a lot more info to the console.--skip_compile
: tell the script to assume the.wasm
and.js
files are already there and just pack the plugin. Useful for debugging.
- The plugin is then located at
extension/(browser)/ps-wasm
.
Ocha 2025. Code licensed under AGPLv3.
Ghostscript is released by Artifex under AGPLv3 and can be found here.
Pako is written by Andrey Tupitsin and Vitaly Puzrin and can found here.