D4ario0 / rocketpdf

This is a simple CLI (Command Line Interface) that encapsulates basic pdf operations while enhancing User Experience by allowing concatenate operations.
GNU Affero General Public License v3.0
2 stars 0 forks source link

More an observation than an issue #1

Open GitHubRulesOK opened 2 weeks ago

GitHubRulesOK commented 2 weeks ago

your test compression file tests/test_compress/Indentation.pdf is faulty as un terminated hence is too long the true file is Indentation-fixed.pdf (152 KB) so already compressed perhaps consider using lossless compression such as PDFsizeopt Indentation.pso.pdf (145 KB)

D4ario0 commented 2 weeks ago

Hi @GitHubRulesOK I am aware of that situation since I tested beforehand, and the truth is there is not really much to compress from that file which is simple and well done, that's why for testing it had to artificially increase the size of Indentation.pdf with third-party websites to actually test the compression. Thank you for taking the time of testing, I am always open for improvement!

GitHubRulesOK commented 2 weeks ago

simply decompress the file then show it can be compressed as its a common misconception that already compressed PDF files can be made smaller ! but often bloat, like yours shows :-)

All round PSO is the best tool for lossless compression.

GitHubRulesOK commented 2 weeks ago

Unsure if this helps but If I EXPAND your 1 MB file "losslessly" it becomes reduced to 311 KB so compression should reduce that to about half ? Indentation-max.pdf Oddly PSO does not spot the double coded image and as per its policy keeps it bloated HMMm 181 KB is too big compared with the source ? Indentation-max.pso.pdf I have to parse it with MuPDF to restore as 151 KB Indentation-max.mupdf.pdf