Coder Social home page Coder Social logo

invert-pdf's Introduction

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
  1. (Recommended) Use a virtual environment for your python dependencies.
virtualenv venv
source venv/bin/activate
  1. Install python dependencies. (Python 3.6+)
pip install -r requirements.txt
  1. (Optional) Run the tests.
sh run_tests.sh
  1. Run the application in development mode.
python pdfinvert/main.py

invert-pdf's People

Contributors

dependabot[bot] avatar keotl avatar sankalpdeveloper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

invert-pdf's Issues

Uploading takes forever

I uploaded a normal size pdf, like 4mb. The tab just keeps spinning, the invert is not processing.
I even deployed this locally with docker, but still, keeps spinning no result.
image

Invert only black and white

Hi Is there a way to just invert black and white in the document and not to invert the rest of the colors

Please help!!!

File not downloading (large file)

It says "Failed - Network error" every time I try to download.
My pdf is 170 pages, 3.3 mb, which I assume is considered large.
I saw a similar issue where you said you put a limit that might send a random error if I'm not mistaken. Should I keep reuploading till it works (given the size) or should I split the pdf instead (if so, what would be your limit per pdf)? Thanks

File not downloading

The file cannot be printed.
It's showing server error.
Please fix it.
It's Printable but not downloadable...

PDF file compression

After conversion, there seems to be a lot of garbage in the pdf file. 200kb files bloating up over 10 times the size.

Could use something like pylovepdf to compress files before returning them. Found that it compressed it back to a few hundred KB on the lowest compression settings without any noticeable reduction in quality.

Optimization

  • Investigate conversion without filling up the temporary disk space.
  • Parallel processing
  • file compression? (should probably be a quality setting)

"An error occurred while handling this request"

Hi there! Love your site and use it all the time. This morning, I've tried to invert multiple PDFs and each time received this message. Consistent across Safari, Chrome, and Firefox. I'm running OSX 10.15.1.

Please let me know if you need any more information.

Request timeout when processing larger PDF files

The heroku hosted version has trouble processing files larger than ~1-2MB. The request gets killed afetr 30s and does not complete.

2019-09-29T22:39:13.874742+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=POST path="/convert" host=invert-pdf.club request_id=5302e9aa-c9d3-4d0c-9cde-316f32c55ba4 fwd="1.1.1.1" dyno=web.1 connect=0ms service=30329ms status=503 bytes=0 protocol=http

Error upon compiling

PS C:\fakepath\invert-pdf-master> python pdfinvert/main.py
Traceback (most recent call last):
  File "C:\fakepath\invert-pdf-master\pdfinvert\main.py", line 11, in <module>
    import pdfinvert.wsgi
ModuleNotFoundError: No module named 'pdfinvert'

Get pdf from url

just so that you don't have to download the pdf then upload it again?

Some files not being cleaned up on errors

Some files do not seem to be properly cleaned up. The server stops responding when the temporary work directory is full.

At least, we should add additional logging/error reporting when that happens.

2x2 page alignment issues

Hi recently the 2x2 conversion is working very weird. The first 9pages are done properly and from then onwards the pages looks very small. Here in the attached file you can see after the page 8 all the images in each page looks very small compared to that from pages 1-8. I converted a 236 pages pdf document to 2x2 for printing purpose. Please look into this issue.
2x2.pdf

Web DEV

The header is a bit hard to click/see,

Can help with the HTML/CSS if required...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.