Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Win2PDF Desktop Command Line Summary

Scroll Prev Top Next More

The Win2PDF Desktop application that is part of build 10.0.56 or above now supports a command line interface in addition to the graphical interface. If you supply any commands in this format, it will process it directly from the command line. Otherwise, it displays the graphical interface.

 

The command line interface is supported for licensed copies of Win2PDF. Attempting to run a command line with the evaluation version of Win2PDF will return an error, or an trailer page will be added to the resulting PDF. To evaluate Win2PDF or Win2PDF Pro without the trailer page, contact us for a time limited evaluation license.

 

The executable is located in the printer driver directory which is usually:

 

 c:\windows\system32\spool\drivers\x64\3\

 

On 64 bit systems, and :

 

 c:\windows\system32\spool\drivers\w32x86\3\

 

On 32 bit systems.

 

The general format of the command line is:

 

win2pdfd.exe subcommand parameter1 parameter2 …

 

Where subcommand can be one of:

version

previewpdf

append

compress

encrypt

extractpages

deletepages

splitpages

splitpagesbeforesearch

splitpagesaftersearch

splitpagesdelete

rotatepages

pagecount

watermark

background

extracttext

makesearchable

imagepdf

print

printpdf

printpdfactualsize

printpdfdirect

printdocx

printrtf

printodt

printtxt

printhtml

printsvg

printxps

printtiff

printjpg

printpng

printbmp

printgif

previewpdf

convert

convertto

batchconvert

watchconvert

pdfimage

pdf2jpg

pdf2png

pdf2tiff

pdf2docx

pdf2rtf

pdf2odt

tiff2pdf

jpg2pdf

png2pdf

bmp2pdf

gif2pdf

html2pdf

svg2pdf

xps2pdf

docx2pdf

doc2pdf

rtf2pdf

odt2pdf

txt2pdf

image2pdf

getcontentsearch

getcontentsearchbelow

sign

setpdfversion

addbookmark

addbookmarkaftersearch

 

The number of parameters varies depending on the subcommand, and all parameters specified in the subcommand documentation are required.

 

If no subcommand is specified, first command line parameter is assumed to be a file name instead of a subcommand. If the file name ends with a PDF extension, the Win2PDF Desktop application opens with the graphical options to append, prepend, delete pages, extract pages, split pages, or rotate pages. Otherwise, the file name in the first parameter is opened with the default file handler for the file type and sent to the Win2PDF printer. If the Win2PDF auto-name feature has been enabled, the file will be converted to PDF using the settings specified by the auto-name feature.