API referenceAnnotations

pdfSetBookmarkStyle

Set a bookmark's display style — bold/italic flags and text

C
BOOL32 __stdcall pdfSetBookmarkStyle(PPDF IPDF, int32_t ABmk, TFStyle Style, uint32_t RGBColor);
Delphi
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.

ParameterDescription
IPDFDocument handle.
ABmkBookmark handle.
StyleBold/italic style bits — exact convention not independently re-confirmed here; see remarks.
RGBColorPacked 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)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Annotations
Category

Setters

Exported names

pdfSetBookmarkStyle

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.