This article aims to show you how to use VeryDOC PDF Compressor to downsample color/monochrome/grayscale images when compressing PDF files in Windows systems.
Here are steps to use VeryDOC PDF Compressor to downsample color/monochrome/grayscale images when compressing PDF file through command line and parameters:
1. Download trial version software
Please download ZIP package from following icon:
Then, you need to extract its content to your computer so that executive file could be used for process later. 🙂
2. Run cmd.exe in your computer
After you own trial version software, please run cmd.exe to open command prompt for typing commands and parameters later.
3. Use commands and parameters to compress PDF and downsample color/monochrome/grayscale images
After command prompt is opened, please refer to the following examples to compress files of PDF singly or in batches and downsample color/monochrome/grayscale images:
pdfcompressor.exe -ci jpx -mi jbig2 C:\in.pdf C:\out.pdf
pdfcompressor.exe -ci jpx -gi jpx -mi jbig2 C:\in.pdf C:\out.pdf
pdfcompressor.exe -ci jpg -cidown -cidownres 50 -gi jpg -gidown -gidownres 50 -mi fax -midown -midownres 50 C:\in.pdf C:\out.pdf
pdfcompressor.exe -ci jpg -cidown -cidownres 50 -cidowntype 1 C:\in.pdf C:\out.pdf
pdfcompressor.exe -gi jpg -gidown -gidownres 50 -gidowntype 1 C:\in.pdf C:\out.pdf
pdfcompressor.exe -mi fax -midown -midownres 50 -midowntype 1 C:\in.pdf C:\out.pdf
where parameters:
- -ci <string>: Set Color Image Compression, values: jpx, jpg, zip
-cidown: Downsample color images
-cidownres <int>: Set Color Image Resolution
-cidowntype <int>: Downsample type for color images:
-cidowntype 0: default
-cidowntype 1: Subsample
-cidowntype 2: Average
-cidowntype 3: Bicubic - -gi <string>: Set Grayscale Image Compression, values: jpx, jpg, zip
-gidown: Downsample Grayscale images
-gidownres <int>: Set Grayscale Image Resolution
-gidowntype <int>: Downsample type for Grayscale images:
-gidowntype 0: default
-gidowntype 1: Subsample
-gidowntype 2: Average
-gidowntype 3: Bicubic - -mi <string>: Set Monochrome Image Compression, values: jbig2, jbig2l, fax, zip, rle
-midown: Downsample Monochrome images
-midownres <int>: Set Monochrome Image Resolution
-midowntype <int>: Downsample type for Monochrome images:
-midowntype 0: default
-midowntype 1: Subsample
-midowntype 2: Average
-midowntype 3: Bicubic
where directories:
- pdfcompressor.exe: call executive file “pdfcompressor.exe”
- C:\in.pdf: specify input PDF file
- C:\out.pdf: specify output PDF file
If you want batch conversion, just change source directory and targeting directory as ones with “*”, for instance:
pdfcompressor.exe -ci jpg -cidown -cidownres 50 -cidowntype 1 C:\*.pdf C:\*.pdf
where:
- C:\*.pdf: specify dozens of input PDF files
- C:\*.pdf: specify dozens of output PDF files
Finally, after you singly or batch compress files of PDF and downsample color/monochrome/grayscale images through commands and parameters, targeting compressed PDF files could be produced into destination folder, which have definite smaller size, etc..
In the end, as you see, this is the end of description about how to use VeryDOC PDF Compressor to downsample color/monochrome/grayscale images when compressing PDF files singly or in batches. For more questions, welcome to leave your comments here. And to get full version of this application, please click following icon: