Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Command Line PDF Convert

Scroll Prev Top Next More

Convert To PDF Command Line Format

 

win2pdfd.exe convert "sourcefile"

win2pdfd.exe convert "sourcefile" "destpdf"

 

Converts the sourcefile to a PDF with the same name and location by using the default Windows application associated with the file type. If the "destpdf" parameter is specified, it is used for the destination PDF file location. If no Windows application is associated with the file type, the conversion will fail.

 

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 file.

 

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

 

Returns 0 on success, and a Windows system error code on failure.

 

To convert to PDF image only, PDF searchable, or a different format, use the Command Line Convert To Format.