Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Command Line Watch Folder and Convert

Scroll Prev Top Next More

Watch Folder and Convert Command Line Format Win2PDF Pro Only Feature

 

win2pdfd.exe watchconvert "watchfolder" "completedfolder" "convertedfolder" destformat

 

Watches the folder specified by "watchfolder" and automatically converts all compatible files to the specified format, and saves the converted files using the same base filename to "convertedfolder". Upon successful conversion, the source file is moved from the "watchfolder" to the folder specified by "completedfolder".  If the "completedfolder" is empty (""), the source file is deleted after conversion.

 

The compatible file formats in the "watchfolder" can be one of:

 

Extension

Format

.PDF

Portable Document Format

.DOCX, .DOC

Microsoft Word (Win2PDF Pro Only)

.RTF

Rich Text Format (Win2PDF Pro Only)

.ODT

OpenDocument Text (Win2PDF Pro Only)

.TXT

Text (Win2PDF Pro Only)

.XLSX, .XLSB, .XLS

Microsoft Excel Spreadsheet (Win2PDF Pro Only)

.ODS

OpenDocument Spreadsheet (Win2PDF Pro Only)

.CSV

Comma Separated Values (Win2PDF Pro Only)

.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

pdf

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)

pdfa

PDF for Archiving

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

bmp

BMP - color (Win2PDF Pro Only)

bmpgray

BMP - grayscale (Win2PDF Pro Only)

bmpmono

BMP - monochrome (Win2PDF Pro Only)

gif

GIF - color (Win2PDF Pro Only)

gifgray

GIF - grayscale (Win2PDF Pro Only)

gifmono

GIF - monochrome (Win2PDF Pro Only)

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

docx

Microsoft Word (Win2PDF Pro Only)

rtf

Rich Text Format (Win2PDF Pro Only)

odt

OpenDocument Format (Win2PDF Pro Only)

xlsx

Microsoft Excel spreadsheet (Win2PDF Pro Only)

xlsb

Microsoft Excel binary spreadsheet (Win2PDF Pro Only)

xls

Microsoft Excel 97-2003 spreadsheet (Win2PDF Pro Only)

ods

OpenDocument Spreadsheet (Win2PDF Pro Only)

csv

Comma Separated Values (Win2PDF Pro Only)

xps

XML Paper Specification (Win2PDF Pro Only)

 

Any folder names that contain spaces must be enclosed with quotation marks. If a file of the same name already exists in the "completedfolder", the file is renamed (files are never overwritten).

 

The command will watch the folder for incoming files indefinitely until it is manually stopped with "CTRL-C" or using the task manager.

 

This feature requires a licensed version of Win2PDF Pro TSE. Contact us for a time limited evaluation license.