API referenceCore SDK

pdfChangeNamedDest

Rename an existing named destination.

Exported namespdfChangeNamedDestA, pdfChangeNamedDestW
AvailabilityPartial — ObjType parameter unused — see Remarks

Purpose — Rename an existing named destination.

Description — Overwrites the name at Handle in the named-destination table (FNDName); page and view parameters are unchanged.

Declarations

C
BOOL32 __stdcall pdfChangeNamedDestA(void* IPDF, TObjType ObjType, uint32_t Handle, const char* NewDestName);
BOOL32 __stdcall pdfChangeNamedDestW(void* IPDF, TObjType ObjType, uint32_t Handle, const wchar_t* NewDestName);
Delphi
function pdfChangeNamedDestA(const IPDF: Pointer; ObjType: TObjType; Handle: Cardinal; const NewDestName: PAnsiChar): LongBool; stdcall; external 'LumasPdf.dll';
function pdfChangeNamedDestW(const IPDF: Pointer; ObjType: TObjType; Handle: Cardinal; const NewDestName: PWideChar): LongBool; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPointerInstance handle.
ObjTypeTObjTypeAccepted for ABI compatibility; not read by this build — see Remarks.
HandleCardinal1-based named-destination handle from pdfCreateNamedDest.
NewDestNamestringReplacement name. Empty is rejected.

Return valueTRUE on success; FALSE if Handle is out of range or NewDestName is empty.

Remarks — compatibility parameters. ObjType (the reference ABI's object-kind discriminator, presumably intended to allow this call to target different destination-bearing object types) is accepted but ignored; this build always applies the rename to the single named-destination table regardless of its value.

See alsopdfCreateNamedDest

C# (P/Invoke)

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

Core

Exported names

pdfChangeNamedDestA pdfChangeNamedDestW

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.