Skip to content

Ghostscript 10 based on https://github.com/jkrimmer/ghostpdl-wasm #7

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

laurentmmeyer
Copy link
Owner

It is an experiment as asked by #6 and based on the amazing work of @jkrimmer.
Linked with @jkrimmer/ghostpdl-wasm#1

export GS_LDFLAGS="\
-s EXIT_RUNTIME=0 \
-s ALLOW_MEMORY_GROWTH=1 \
-s STACK_SIZE=256kb \
-s WASM=1 \
-s STANDALONE_WASM=0 \
-s ERROR_ON_UNDEFINED_SYMBOLS=1 \
-s WASM_BIGINT=1 \
-s FORCE_FILESYSTEM \
-s EXPORT_ES6 \
-s ENVIRONMENT='worker' \
-s MODULARIZE=1 \
-s EXPORT_NAME=gs \
-s INVOKE_RUN=0 \
-s EXPORTED_RUNTIME_METHODS='["callMain","FS"]' \
-s EMULATE_FUNCTION_POINTER_CASTS \
-s BINARYEN_EXTRA_PASSES="--pass-arg=max-func-params@70" \
--closure 1 \
"
  • FS.writeFile is not present, I had to patch it in JS, not sure why, ideas welcome

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant