pdfc
pdfc copied to clipboard
Checking ratio of the compression
Hi.
PROBLEM:
Sometimes the compression doesn't actually do much and the ratio percentage is negative.
SOLUTION:
I added a simple if to check whether the ratio is negative and if so returning False from the compress function and aborting the end process with an exit code 2.
Cheers, B0b