Limited time promo

AddWatermarkImage

English

This help topic applies only to novaPDF. If you don't have it yet, you must download it first.

Download now Buy licenses
Mar 29, 2022
novaPDF 11.x
We strive to keep our help as accurate as possible. If you notice any inconsistencies or outdated info please let us know.
The AddWatermarkImage method adds a new image watermark.
 HRESULT AddWatermarkImage(
 [out, string] LPWSTR* p_pwsNewWatermarkId,
 [out, string] LPWSTR* p_pwsNewLayoutId
 );

Parameters:

 p_pwsNewWatermarkId,
     [out, string] - return new watermark id

 p_pwsNewLayoutId
     [in, string] - return layout id for the new watermark

Return values:

S_OK on success or COM error code
NV_NOT_INITIALIZED - Initialize was not called
NV_UNKNOWN_PROFILE - no profile loaded

Remarks:

The newly created watermark contains default settings. Use the watermark id and layout id as parameters for set watermark and layout options functions.
For layout options, see Working with Layout objects.