API reference › Import & Output APIs
pdfGetOpenActionDestination
If the document's OpenAction is a GoTo action, return its
Purpose — If the document's OpenAction is a GoTo action, return its target page.
C
int32_t __stdcall pdfGetOpenActionDestination(PPDF IPDF);
Return value — 1-based page number; -1 when no open action is set, the open action is not a GoTo, or the instance handle is invalid.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetOpenActionDestination(IntPtr IPDF);
Area
Import & Output APIs
Category
Getters
Exported names
pdfGetOpenActionDestination
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.