Optimize file size of PDFs
$ npm install pdfoptim
const pdfoptim = require('pdfoptim');
pdfoptim('printer-manual.pdf');
// Filesize difference -79.46% ✂️
// Optimized version of printer-manual.pdf saved as optimized-1556039930343.pdf 🎉
Type: string
Path to PDF file to optimize.
Type: Object
Type: string
Default: optimized-{timestamp}.pdf
Filename for optimized PDF.
$ npm install --global pdfoptim
$ pdfoptim --help
Usage
pdfoptim [filePath]
Options
--outputFile File name for optimized PDF [Default: optimized-{timestamp}.pdf
Examples
$ pdfoptim essay.pdf
// Optimized PDF created with name optimized-[timestamp].pdf
$ pdfoptim -o optim-essay.pdf essay.pdf
// Optimized PDF created with name essay-optim.pdf
- percentage-diff - Calculate percentage difference between two numbers
- generator-lnm - Awesome node module generator