Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Command Line PDF Watermark/Background

Scroll Prev Top Next More

Watermark/Background PDF Command Line Format win2pdf-pro-feature

 

win2pdfd.exe watermark "sourcefile" "watermarkfile" "destfile" mode excludepre excludepost

 

Where:

 

“mode” is either “watermark”, “background”, “watermarklink”, or “backgroundlink

If mode is “watermark” or "“watermarklink”, the watermarkfile PDF is overlaid on top of all existing graphics on the page. If mode is “background” or “backgroundlink”, the watermarkfile PDF is placed underneath all existing graphics on the page. If the watermark file has click-able links, you can use the "watermarklink" or "backgroundlink" variation to keep these links active in the final PDF file.

 

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 feature requires a licensed version of Win2PDF Pro. Contact us 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. The "sourcefile" can be a local file path, or an web address (URL) to an existing PDF.

 

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