PDF-Doc-Scan
PDF-Doc-Scan copied to clipboard
[Feature Request] Higher compression for PDF's
Hi,
Since the main focus is scanning receipts, it would be better to have higher compression for the PDF's. A simple 8.5x11 paper is averaging in the 300k range. This is more data send over a mobile device and also more storage. Multiplied over many uploads over time this really has an effect.
Thank you
+1
I was pretty successful using PNG with 1bit color palette + dithering to store images in the PDF in one of my projects. The PDFs got insanely small.
You could also go up to 8bit, if you need more nuances.
Here is a StackOverflow article on how to do this in Java: https://stackoverflow.com/questions/65953579/how-to-implement-1-bit-dithering-using-java
And here is a PNG Library that might be useful: https://github.com/nayuki/PNG-library