Limited time promo

DeleteLayout2

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 DeleteLayout2 method deletes an existing layout for the specified object
HRESULT DeleteLayout2(
    [in] BSTR p_wsObjectId
    [in] BSTR p_wsLayoutId
);

Parameters:

p_pwsObjectId
    [in] object id (watermark text, watermark image, overlay, signature or content)

p_pwsLayoutId
    [in] layout id (obtained with [GetLayout2](getlayout2-help.html) )

Return values:

S_OK on success or COM error code
NV_NOT_INITIALIZED - Initialize was not called
NV_UNKNOWN_PROFILE - no profile loaded
NV_INVALID_LAYOUT - layout not found for specified object