win2pdfd.exe batchconvert "sourcefolder" "destfolder" destformat
Converts all compatible files in the sourcefolder to the specified format, and saves the converted files using the same base filename to the destination folder. The compatible file formats in the "sourcefolder" can be one of:
Extension |
Format |
Portable Document Format |
|
.DOCX, .DOC |
Microsoft Word |
.RTF |
Rich Text Format |
.ODT |
OpenDocument Text |
.TXT |
Text |
.HTML, .HTM, .MHTML, .JS |
HyperText Markup Language |
.SVG |
Scalable Vector Graphics |
.XPS |
XML Paper Specification |
.TIF, .TIFF |
Tagged Image File Format |
.JPG, .JPEG, .JPE |
Joint Photographic Experts Group Image |
.PNG |
Portable Network Graphics |
.BMP, .DIB |
Windows Bitmap |
.GIF |
Graphics Interchange Format |
Files not matching one of these extensions will be skipped.
The "destformat" can be one of the following:
destformat parameter |
Description |
Portable Document Format |
|
pdfimagemono |
PDF Image Only - monochrome |
pdfimagegrayscale |
PDF Image Only - grayscale |
pdfimagecolor |
PDF Image Only - color |
pdfcompressed |
PDF - compressed |
pdfsearchable |
PDF - searchable (OCR) |
docx |
DOCX - Microsoft Word |
rtf |
RTF - Rich Text Format |
odt |
ODT - OpenDocument Text |
textformatted |
Text - formatted |
textunformatted |
Text - unformatted |
jpggray |
JPG - grayscale |
jpg |
JPG - color |
tiffmono |
TIFF - monochrome |
tiffgray |
TIFF - grayscale |
tiff |
TIFF - color |
tifftransparent |
TIFF - color with transparent background |
pnggray |
PNG - Grayscale |
png |
PNG - Color |
pnggraytransparent |
PNG - Grayscale with transparent background |
pngtransparent |
PNG - Color with transparent background |
ocrtextformatted |
Text - formatted after making searchable, requires optional Win2PDF OCR Add-on |
ocrtextunformatted |
Text - unformatted after making searchable, formatted after making searchable, requires optional Win2PDF OCR Add-on |
Any folder names that contain spaces must be enclosed with quotation marks.
This feature requires a licensed version of Win2PDF Pro. Contact us for a time limited evaluation license.
Returns 0 on success, and a Windows system error code on failure.