PDF OPTIMIZER

A Sample JSON Profile

{
         "images": {
                 "color": {
                          "downsample": {
                                   "trigger-dpi": 225,
                                   "target-dpi": 150
                          },
                          "recompress": {
                                   "type": "jpeg",
                                   "quality": "medium"
                          }
                 },
                 "grayscale": {
                          "downsample": {
                                   "trigger-dpi": 225,
                                   "target-dpi": 150
                          },
                          "recompress": {
                                   "type": "jpeg",
                                   "quality": "medium"
                          }
                 },
                 "monochrome": {
                          "downsample": {
                                   "trigger-dpi": 450,
                                   "target-dpi": 300
                          },
                          "recompress": {
                                   "type": "jbig2",
                                   "quality": "lossy"
                          }
                 },
                 "optimize-only-if-reduction-in-size": "on",
                 "consolidate-duplicate-image-and-forms": "on"
         },
         "transparency": {
                 "quality": "medium-quality"
    },
         "fonts": {
                 "subset-embedded-fonts": "on",
                 "consolidate-duplicate-fonts": "on"
         },
         "objects": {
                 "discard-javascript-actions": "on",
                 "discard-alternate-images": "on",
                 "discard-thumbnails": "on",
                 "discard-document-tags": "on",
                 "discard-bookmarks": "on"
         },
         "userdata": {
                 "discard-comments-forms-multimedia": "on",
                 "discard-document-information-and-metadata": "on",
                 "discard-file-attachments": "on",
                 "discard-external-crossreferences": "on",
                 "discard-private-data": "on",
                 "discard-hidden-later-content": "on"
         },
         "cleanup": {
                 "compression": "compress-entire-file",
                 "flate-encoded-unencoded-streams": "on",
                 "convert-lzw-to-flate": "on",
                 "optimize-page-content": "on",
                 "optimize-for-fast-web-view": "on"
        }
}