keotl / invert-pdf

A free online PDF colour inverter. (for printing dark PDFs.)
MIT License
97 stars 50 forks source link

logo

invert-pdf.club

A free online PDF colour inverter. (Perfect for printing dark PDFs.)

Try it online at invert-pdf.club!

Running locally

Docker (recommended)

sudo docker image build . -t invert-pdf
sudo docker run -p 8080:8080 --env PORT=8080 invert-pdf:latest

Open localhost:8080 and enjoy!

Manually from source

  1. Install ImageMagick and ghostscript from your package manager.
    sudo apt install imagemagick ghostscript
  2. (Recommended) Use a virtual environment for your python dependencies.
    virtualenv venv
    source venv/bin/activate
  3. Install python dependencies. (Python 3.6+)
    pip install -r requirements.txt
  4. (Optional) Run the tests.
    sh run_tests.sh
  5. Run the application in development mode.
    python pdfinvert/main.py