pdfSetBookmarkStyle
Set a bookmark's display style — bold/italic flags and text
BOOL32 __stdcall pdfSetBookmarkStyle(PPDF IPDF, int32_t ABmk, TFStyle Style, uint32_t RGBColor);
function pdfSetBookmarkStyle(const IPDF: PPDF; ABmk: Integer; Style: TFStyle; RGBColor: Cardinal): LongBool; stdcall;
Purpose. Set a bookmark's display style — bold/italic flags and text color in the outline panel.
Description. Style is typed TFStyle in the ABI — the same type whose documented named constants (fsItalic/fsBold) were found in Core Font Selection to not correspond to the actual bit convention most font-style resolvers in this SDK check. This chapter did not independently re-verify whether SetBookmarkStyle's internal Integer(Style) cast consults the same legacy bit0=Bold/bit1=Italic convention documented there or a different one — treat the exact bit meaning as unconfirmed for this specific call and test empirically (0/1/2/3) before relying on the named TFStyle constants, consistent with the general caution established for that type.
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
ABmk | Bookmark handle. |
Style | Bold/italic style bits — exact convention not independently re-confirmed here; see remarks. |
RGBColor | Packed outline-panel text color. |
Return value. True if ABmk resolves; False otherwise.
See also. pdfSetFont (the TFStyle bit-convention caveat this note refers to).
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Setters
pdfSetBookmarkStyle
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.