pdfCreateGoToActionEx
Create a GoTo action targeting a previously created named
Purpose — Create a GoTo action targeting a previously created named destination, by handle.
Description — Registers action kind 0 directly with Dest=1 (the internal "named" marker) and the named-destination handle stored in the GotoPg slot — distinct from pdfCreateGoToAction, which targets an explicit page/coordinates. NamedDest must be a handle previously returned by pdfCreateNamedDest.
Declarations
int32_t __stdcall pdfCreateGoToActionEx(PPDF IPDF, uint32_t NamedDest);
function pdfCreateGoToActionEx(const IPDF: PPDF; NamedDest: Cardinal): Integer; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
NamedDest | Cardinal | Handle from pdfCreateNamedDest. |
Return value — 1-based action handle (> 0) on success, 0 if the handle is invalid. The validity of NamedDest itself is not checked at this call — an out-of-range value is stored as-is and only matters at serialization.
See also — pdfCreateGoToAction, pdfCreateNamedDest
C# (P/Invoke)
public static extern int pdfCreateGoToActionEx(IntPtr IPDF, uint NamedDest);
Object Creation
pdfCreateGoToActionEx
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.