API referenceAnnotations

pdfSetBookmarkDest

Set a bookmark's destination-array kind and its up-to-4

C
BOOL32 __stdcall pdfSetBookmarkDest(PPDF IPDF, int32_t ABmk, int32_t DestType, double a, double b, double c, double d);
Delphi
function pdfSetBookmarkDest(const IPDF: PPDF; ABmk, DestType: Integer; a, b, c, d: Double): LongBool; stdcall;

Purpose. Set a bookmark's destination-array kind and its up-to-4 numeric parameters (zoom factor and/or left/top/right/bottom, per DestType — the same shape as pdfPageLinkEx's destination parameters, Links).

Description. Verified major parameter reduction: a, b, c, and d are all accepted by the ABI but never passed throughSetBookmarkDestH is called with only ABmk and DestType; the four numeric destination-array parameters have zero effect regardless of what is passed. Combined with pdfGetBookmark's hardcoded dtXY_Zoom report above, this means bookmark destinations in this SDK cannot actually be configured beyond whatever fixed, implicit destination-array shape SetBookmarkDestH itself hardcodes internally — the richer per-DestType zoom/rect control the ABI's shape implies (matching pdfPageLinkEx's genuinely-functional equivalent for Links) does not exist for bookmarks.

Parameters.

ParameterDescription
IPDFDocument handle.
ABmkBookmark handle.
DestTypeDestination-array kind — the only parameter besides ABmk that actually reaches the implementation.
a, b, c, dAll four accepted but silently dropped — zero effect.

Return value. True if ABmk resolves; False otherwise (this does not indicate that a/b/c/d were honored — they never are).

See also. pdfPageLinkEx (the genuinely functional Link-annotation equivalent, for contrast).

C# (P/Invoke)

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

Setters

Exported names

pdfSetBookmarkDest

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.