PDF-Doc-Scan icon indicating copy to clipboard operation
PDF-Doc-Scan copied to clipboard

[Feature Request] Higher compression for PDF's

Open user8446 opened this issue 2 years ago • 1 comments

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

user8446 avatar Mar 20 '23 03:03 user8446

+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

sandreas avatar Sep 12 '24 02:09 sandreas