#pdf #pdf-file #optimization #cli #filesize

app smallerpdf

A super simple tool to make your pdf file size smaller using ghostscript

4 releases

0.1.3 Nov 11, 2022
0.1.2 Nov 6, 2022
0.1.1 Nov 5, 2022
0.1.0 Nov 5, 2022

#1928 in Command line utilities

40 downloads per month

MIT license

5KB
53 lines

SmallerPDF

Make your PDF files great again! A super simple tool to reduce PDF file size using GhostScript.

Intention

The main purpose of this program is to reduce the resolution of the PDF, so that you can easily share your large size PDF around online (e.g. Discord has file limit size of 8MB). This program is especially helpful if you want to reduce the file size of a PDF that contains handwritten notes (e.g. produced with apps like GoodNotes)

Installation

cargo install smallerpdf

Usage

From my experience, adjusting lowering image resolution size drastically lowers the output size of the PDF. However, this will lower all the images that are included in the PDF file. Strangely enough, if you have a PDF that only consists of a handwritten note (e.g. produced with GoodNotes), you may lower the image resolution all the way down to 8 and the quality is still unaffected (but the size is reduced).

smallerpdf <pdf_name> [image_resolution_size]

where <> parameters are required and [] parameters are optional.

To Dos

  • Ability to optimize an entire folder of documents, recursively

No runtime deps