win2pdfd.exe watermark "sourcefile" "watermarkfile" "destfile" mode excludepre excludepost
Where:
“mode” is either “watermark” or “background”
If mode is “watermark”, the watermarkfile PDF is overlaid on top of all existing graphics on the page. If mode is “background, the watermarkfile PDF is placed underneath all existing graphics on the page.
“excludepre” is the number of pages from the beginning of the document to skip applying the watermark. Set to 0 apply watermarkfile to all pages including the first page. Set to a negative value to include the watermark to the absolute value of the number of pages from the beginning of the document.
“excludepost” is the number of pages from the end of the document to skip applying the watermark. Set to 0 to apply the watermarkfile to all pages including the last page. Set to a negative value to include the watermark to the absolute value of the number of pages from the end of the document.
This command is only available in licensed versions of Win2PDF Pro. Contact support@win2pdf.com for a time limited evaluation license.
If "sourcefile" and "destfile" are the same file, the file is modified in place.
Any file names that contain spaces must be enclosed with quotation marks.
Returns 0 on success, and a Windows system error code on failure.