muriloventuroso / pdftricks

A simple, efficient application for small manipulations in PDF files using Ghostscript.
90 stars 14 forks source link

Enable "ebook" compression #41

Closed toxpal closed 5 years ago

toxpal commented 5 years ago

If I understand right, pdftricks utilizes ghostscript to optimize PDF. However, after trying pdftricks, I found that it doesn't compress file at all (file size remains the same) or compress it extremely (but file quality becomes extremely low).

In short, it does the same as using ghostscript with option "/printer" (which outputs high quality files, big in size) or option "/screen" (which outputs low quality files, small in size).

However, ghostscript also offers option "/ebook", which is the best of both worlds - it outputs better than average quality, mid-size files. It's perfect. May I ask what is the reason why pdftricks doesn't support it? Now, it offers only 2 modes (I don't consider "Auto" as a separate mode because it just auto-selects one of 2 modes) - High Quality and Extreme Compression.

My files are about 50 MB in size, and Extreme Compression makes them about 5 MB in size, but quality is terrible, High Quality makes them even larger than original (so compression is pointless). However, option "/ebook" in ghostscript makes them 10 MB in size, while quality is almost as good as original (you need to examine each file carefully to spot a difference).

May we get this option too?