Skip to content

laurentmmeyer/ghostscript-pdf-compress.wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ghostscript-pdf-compress.wasm

Context

This project is a demo of another usage of the gs.wasm that @ochachacha compiled. It takes any PDF and compress it via ghostscript.

The applied command is:

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

Run the project

To run the project, simply do the following steps

git clone git@github.com:laurentmmeyer/ghostscript-pdf-compress.wasm.git
cd ghostscript-pdf-compress.wasm
yarn
yarn dev

Demo

https://laurentmmeyer.github.io/ghostscript-pdf-compress.wasm/

Blog

I wrote a post about the process.

About

A short demo of how to compress PDF in the browser with ghostscript in WASM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages