win2pdfd.exe imagepdf "sourcefile" "destfile" colormode
win2pdfd.exe imagepdfa "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
The "imagepdfa" variation is identical to "imagepdf", but the resulting PDF is saved using the PDF/A format.
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. 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.