cpdf -decompress in.pdf -o out.pdf
cpdf -compress in.pdf -o out.pdf
cpdf -squeeze in.pdf [-squeeze-log-to <filename>]
[-squeeze-no-recompress] [-squeeze-no-pagedata] -o out.pdf
To decompress the streams in a PDF file, for instance to manually inspect the PDF, use:
cpdf -decompress in.pdf -o out.pdf
To compress the streams in a PDF file, use:
cpdf -compress in.pdf -o out.pdf
To squeeze a PDF file, reducing its size by an average of about twenty percent (though sometimes not at all), use:
cpdf -squeeze in.pdf -o out.pdf
The -squeeze operation writes some information about the squeezing process to standard output. The squeezing process involves several processes which losslessly attempt to reduce the file size. It is slow, so should not be used without thought.
The -squeeze-log-to <filename> option writes the log to the given file instead of to standard output. Log content is appended to the end of the log file, preserving existing contents.
The option -squeeze-no-pagedata avoids the reprocessing of page data, which avoids problems in case of malformed files, and makes the process much faster at the cost of a little less compression. The option -squeeze-no-recompress is deprecated as of version 2.6 and has no effect.