Limited time promo

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 GetBookmarkDefinition method retrieves an existing bookmark definition properties.
HRESULT GetBookmarkDefinition(
    [in] SHORT p_nDefinition,
    [out] SHORT* p_pnHeading,
    [out] BOOL* p_pbEnabled,
    [out] BOOL* p_pbDetFont,
    [out, string] LPWSTR* p_pwsDetFont,
    [out] LONG* p_pnDetFontType,
    [out] BOOL* p_pbDetStyle,
    [out] BOOL* p_pbDetBold,
    [out] BOOL* p_pbDetItalic,
    [out] BOOL* p_pbDetSize,
    [out] INT* p_pnDetSizeVal,
    [out] FLOAT* p_pnDetSizePt,
    [out] BOOL* p_pbDetColor,
    [out] LONG* p_pnDetColor,
    [out] BOOL* p_pbDispAsBold,
    [out] BOOL* p_pbDispAsItalic,
    [out] LONG* p_pnDispColor
);

Parameters:

p_nDefinition
    [in]definition index

p_pnHeading
    [out]heading index

p_pbEnabled
    [out]definition is enabled

p_pbDetFont
    [out] detect font flag

p_pwsDetFont
    [out] font name

p_pbDetStyle
    [out] detect font style

p_pbDetBold
    [out] bold font

p_pbDetItalic
    [out]] italic font

p_pbDetSize
    [out]] detect font size

p_pnDetSizeVal
    [out] font size

p_pnDetSizePt
    [out] font size rounding

p_pbDetColor
    [out] detect font color

p_pnDetColor
    [out] font color (RGB value)

p_pbDispAsBold
    [out]] display bookmark font bold

p_pbDispAsItalic
    [out] display bookmark font italic

p_pnDispColor
    [out] display bookmark font color

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_BOOKMARK_DEF - wrong bookmark definition index