Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Command Line PDF Image Compression

Scroll Prev Top Next More

PDF Image Compression Command Line Format

 

win2pdfd.exe compress "sourcefile" compressratio "destfile"

win2pdfd.exe compress "sourcefile" compressratio "destfile" favorjeg2000

 

Re-compress  images using either JPG or JPEG2000. The “compressratio” is a number, usually 10-100 that determines the amount of compression. Win2PDF tries to select the best compression format based on the current document. In the 2nd variation, specifying a "1" in the last parameter "favorjpeg2000" will favor JPEG2000 compression even if it results in a larger PDF.

 

Any file names that contain spaces must be enclosed with quotation marks. The "sourcefile" can be a local file path, or an web address (URL) to an existing PDF.

 

This feature requires a licensed version of Win2PDF. Contact us for a time limited evaluation license.

 

Returns 0 on success, and a Windows system error code on failure.