pdfSetBookmarkDest
Set a bookmark's destination-array kind and its up-to-4
BOOL32 __stdcall pdfSetBookmarkDest(PPDF IPDF, int32_t ABmk, int32_t DestType, double a, double b, double c, double d);
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 through — SetBookmarkDestH 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.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
ABmk | Bookmark handle. |
DestType | Destination-array kind — the only parameter besides ABmk that actually reaches the implementation. |
a, b, c, d | All 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)
[return: MarshalAs(UnmanagedType.Bool)]
Setters
pdfSetBookmarkDest
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.