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"


Compress JPEG images using JPEG2000. The “compressratio” is a number, usually 10-100 that determines the amount of compression. Other images in the document are unchanged.


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.


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