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)
Mar 22, 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 AddCustomProperty method adds a custom property
HRESULT AddCustomProperty(
    [in, string] LPCWSTR p_wsPropertyName,
    [in, string] LPCWSTR p_wsPropertyValue,
    [in] BOOL p_bEnabled,
    [out] LONG* p_pnIndex
);

Parameters:

p_wsPropertyName
    [in] property name
p_wsDefaultValue
    [in] property value
p_bEnabled
    [in] flag, property is enabled
p_pnIndex
    [out] custom property index

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 - empty property name

Remarks:

This method adds a new custom property at the end of the list.