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

Download now Buy licenses
Adrian (Softland)
Apr 08, 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 GetLayout method retrieves the layout id for the specified object in the loaded profile
HRESULT GetLayout(
    [in, string] LPCWSTR p_wsObjectId,
    [in] LONG p_nIndex,
    [out, string] LPWSTR* p_pwsLayoutId
);

Parameters:

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

p_nIndex
    [in] layout index

p_pwsLayoutId
    [out] layout id

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_OPTION - wrong object id
NV_INVALID_LAYOUT - layout not found for specified object

Remarks:

For layout options, see Working with Layout objects.