Command line tool to optimize PDF, individually, searching by pattern or an entire folder.
- gs (Ghostscript)
optimpdf [OPTION] [INPUT]*
Note: the '*' symbol mean as many inputs you want.
Shows help.
optimpdf -h
Keep original PDFs.
optimpdf -k [INPUT]*
Optimeze PDFs recursively in the specified directories.
optimpdf -r [INPUT]*
optimpdf pdf1.pdf pdf2.pdf
optimpdf dir
Self directory do not need to be specified when is alone.
optimpdf .
= optimpdf
optimpdf Dowloads/foo_**.pdf
optimpdf . Dowloads/pdf1.pdf dir1 pdf2.pdf
optimpdf -r Documents/dir1 pdf1.pdf dir2
Warning: The last one search recursively in 'Documents/dir1' and in 'dir2' also.