win2pdfd.exe html2pdf "sourcehtml" "destpdf"
win2pdfd.exe html2pdf "sourcehtml" "destpdf" "papersize"
win2pdfd.exe html2pdf "sourcehtml" "destpdf" "papersize" timeout
Convert the HTML file or web page specified by "sourcehtml" to a PDF file named "destpdf".
If the "papersize" is specified, it can be one of:
letter |
letter-landscape |
legal |
legal-landscape |
tabloid |
tabloid-landscape |
A2 |
A2-landscape |
A3 |
A3-landscape |
A4 |
A4-landscape |
A5 |
A5-landscape |
CSheet |
CSheet-landscape |
DSheet |
DSheet-landscape |
ESheet |
ESheet-landscape |
The "-landscape" papersize variations change the orientation to landscape.
Any file names that contain spaces must be enclosed with quotation marks.
The optional timeout parameter is specified in milliseconds. If no timeout is specified, the default is 30000 (30 seconds).
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.