Show HN

Presse

by @saientifik

Presse – a Rust CLI tool to compress and merge PDFs Compression, merging and image conversion to PDF in one command-line tool. Benchmarked against ghostscript on the same corpus (~20 docs), compression was 7x faster, and 19% better compression (ghostscript even inflated some already-optimized docs). The compression route extracts images, then lossy-compress them. This yield most of the gains compared to bytes optimization and artifact collection. Presse uses lopdf and image crates. Understanding and handling multiple image color-spaces was the most confusing part for me, starting from almost zero knowledge about Rust (learning project!). CMYK images not yet supported, some malformed PDF don't get properly compressed as well.

Discover more builders

Builderlust is an endless, joyful scroll of real projects people are shipping right now. Get the app to keep finding your next spark of inspiration.

📱 Coming soon to iOS & AndroidOpen in the app