Compressing PDF Files

Cleanup

compression Select the compression action for the file. Enter one of these values:
compress-entire-file Compress document as a single unit
compress-document-structure Compress the document structure only
remove-compression Removes compression from file streams

Optional. Enable any of these values by adding it to the profile and setting it equal to "on."

flate-encode-uncompressed-streams Compress uncompressed streams using Flate.
convert-lzw-to-flate Recompress LZW-compressed streams using Flate.
optimize-page-content Removes redundant content streams, or page text.
optimize-for-fast-web-view Place all the information needed to render the first page of the document near the beginning of the file. This process is also known as linearization. This allows a web browser to open the PDF document more quickly.

Flate, or Deflate compression, is an open source standard widely used for creating zip files and in PDF documents. It is commonly used for PNG image files, and is much more widely used than LZW.

LZW, Lempel-Ziv-Welch, is a universal data compression algorithm, once widely used with Unix platforms. This method appears in some old PDF documents but it is rarely used any longer.

{
. . .
    "cleanup": {
        "compression": "compress-entire-file",
        "flate-encode-uncompressed-streams": "on",
        "convert-lzw-to-flate": "on",
        "optimize-page-content": "on",
        "optimize-for-fast-web-view": "on"
. . .
}