win2pdfd.exe imagepdf "sourcefile" "destfile" colormode
Converts a pdf specified by "sourcefile" into an image only PDF specified by "destfile". If "sourcefile" and "destfile" are the same file, the file is modified in place. 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.