How to compress image in PDF by command line

The application VeryPDF Advanced PDF Tools Command Line allows you to compress image in PDF document to make PDF for a smaller size or for fast web viewing. This application supports to compress monochrome image, grayscale image and color image.

In this article, you will see how to use this command line application to realize the function that you need. Please free download VeryPDF Advanced PDF Tools Command Line at first and then extract this ZIP file to your computer. You can browse the .txt document readme.txt in unzipped file package to see the usage and options of the application. The executable file pdfcompress.exe is the called program of the application.

If you need to set the compression methods for different kinds of image in PDF document, please open the compress.ini file in the unzipped file package to set options. For examples, if you need to compress color image and set image quality, please do as follows:

Change the parameters beneath [colorimage] and save your changes by hitting keyboard shortcut Ctrl+S. The changed parameters can be like the ones shown below:

compressformat=3                 ;0: Not change; 1: Flate compression; 2: JPEG compression; 3: JPEG2000 compression
quality=40                       ;Set quality to color image, the value is from 1 to 100
imagesize=70                     ;Set scale ratio to color image, the value is from 1 to 100

With the same way, you can also compress grayscale image or monochrome image. Please see compress.ini file in following snapshot.

compress image of PDF with VeryPDF Advaned PDF Tools Command Line

Then please open MS-DOS interface in which you can input your commands. Please refer to the following commands template to write your own ones:

pdfcompress.exe -i C:\input.pdf -o C:\output.pdf

The image in your PDF document will be successfully compressed and you can view the created PDF document in the specified location.

If you want to have a try of this application, please click the following button to download the free trial version of VeryPDF Advanced PDF Tools Command Line.

free download VeryPDF Advanced PDF Tools Command Line

In order to get more information about the application, please visit the homepage of VeryPDF Advanced PDF Tools Command Line.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!