Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Command Line PDF Image Only

Scroll Prev Top Next More

PDF Image Only Command Line Format

 

win2pdfd.exe imagepdf "sourcefile" "destfile" colormode

 

Converts a pdf specified by "sourcefile" into an image only PDF specified by "destfile". The colormode parameter can be one of:

 

 "mono" - create a black and white image only PDF

 "grayscale" - create a grayscale image only PDF

 "color" - create a color image only PDF

 

Image only PDF files can be useful to make the PDF unsearchable, to "flatten" text fields for security, to speed up loading time for complex PDFs, and to reduce the PDF file size.

 

Any file names that contain spaces must be enclosed with quotation marks.

 

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