Limited time promo

AddWatermarkText2

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 AddWatermarkText2 method adds a new text watermark.
HRESULT AddWatermarkText2(
    [out, string] BSTR* p_pwsNewWatermarkId,
    [out, string] BSTR* 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.