API referenceCore SDK

pdfCreateGoToRActionExU

GoToR-to-named-destination variant with a Unicode file name.

Exported namespdfCreateGoToRActionExUA, pdfCreateGoToRActionExUW

Purpose — GoToR-to-named-destination variant with a Unicode file name.

Description — Identical to pdfCreateGoToRActionEx except FileName is PWideChar in both the A and W exports (the "U" in the name marks the file name as Unicode regardless of suffix); DestName still switches ANSI/UTF-16 by the A/W suffix as usual.

Declarations

C
int32_t __stdcall pdfCreateGoToRActionExUA(PPDF IPDF, const wchar_t* FileName, const char* DestName, BOOL32 NewWindow);
int32_t __stdcall pdfCreateGoToRActionExUW(PPDF IPDF, const wchar_t* FileName, const wchar_t* DestName, BOOL32 NewWindow);
Delphi
function pdfCreateGoToRActionExUA(const IPDF: PPDF; const FileName: PWideChar; DestName: PAnsiChar; NewWindow: LongBool): Integer; stdcall; external 'LumasPdf.dll';
function pdfCreateGoToRActionExUW(const IPDF: PPDF; const FileName: PWideChar; DestName: PWideChar; NewWindow: LongBool): Integer; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
FileNamePWideCharTarget file, UTF-16 in both variants.
DestNamestringNamed destination; ANSI (ExUA) or UTF-16 (ExUW).
NewWindowBOOL32New-window hint, stored and serialized.

Return value — 1-based action handle (> 0), or 0 on an invalid handle.

See alsopdfCreateGoToRActionEx

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfCreateGoToRActionExUA(IntPtr IPDF, [MarshalAs(UnmanagedType.LPWStr)] string FileName, IntPtr DestName, [MarshalAs(UnmanagedType.Bool)] bool NewWindow);
public static extern int pdfCreateGoToRActionExUW(IntPtr IPDF, [MarshalAs(UnmanagedType.LPWStr)] string FileName, IntPtr DestName, [MarshalAs(UnmanagedType.Bool)] bool NewWindow);
Area
Core SDK
Category

Object Creation

Exported names

pdfCreateGoToRActionExUA pdfCreateGoToRActionExUW

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.