API referenceCore SDK

pdfDeleteJavaScripts

Delete every document-level named JavaScript entry.

C
void __stdcall pdfDeleteJavaScripts(PPDF IPDF, BOOL32 DelJavaScriptActions);
Delphi
procedure pdfDeleteJavaScripts(const IPDF: PPDF; DelJavaScriptActions: LongBool); stdcall;

Purpose. Delete every document-level named JavaScript entry.

Description. DelJavaScriptActions is accepted by the ABI but never passed through to DeleteAllJavaScripts — whatever distinction it implies (e.g. also removing JavaScript actions attached to fields/ annotations, vs. only the /Names /JavaScript entries themselves) has no effect; the call always performs the same fixed deletion regardless of value.

Parameters.

ParameterDescription
IPDFDocument handle.
DelJavaScriptActionsAccepted but silently dropped.

Return value. None.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern void pdfDeleteJavaScripts(IntPtr IPDF, [MarshalAs(UnmanagedType.Bool)] bool DelJavaScriptActions);
Area
Core SDK
Category

Core

Exported names

pdfDeleteJavaScripts

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.