API referenceCore SDK

psrClearSelection

psrAbort marks the context as aborted (refusing further

C
void __stdcall psrAbort(IPSR Ctx);
void __stdcall psrReset(IPSR Ctx);
void __stdcall psrClearSelection(IPSR Ctx);
Delphi
procedure psrAbort(const Ctx: IPSR); stdcall;
procedure psrReset(const Ctx: IPSR); stdcall;
procedure psrClearSelection(const Ctx: IPSR); stdcall;

Purpose. psrAbort marks the context as aborted (refusing further psrParsePage calls, see above); psrReset clears the current selection and any pending edit state (HasEdit/EditedContent/EditPage) but does not clear the aborted flag; psrClearSelection clears only the selection.

Parameters.

ParameterDescription
CtxA parser context.

Return value. None (all three).

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern void psrClearSelection(IntPtr Ctx);
Area
Core SDK
Category

Misc

Exported names

psrClearSelection

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.