# SaveSettings.DocumentLevelJavaScriptActions Property

> Specifies an array of strings containing Javascript. The scripts are embedded in a PDF document at document level and they are executed, when the PDF document is opened. When the document is saved as PDF/A the scripts are not embedded.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 22.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > SaveSettings.DocumentLevelJavaScriptActions Property
- **408 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/documentleveljavascriptactions-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/documentleveljavascriptactions-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/documentleveljavascriptactions-property/llms-full.txt

---

### Description

Specifies an array of strings containing Javascript. The scripts are embedded in a PDF document at document level and they are executed, when the PDF document is opened. When the document is saved as PDF/A the scripts are not embedded.

### Syntax

```csharp
public string[] DocumentLevelJavaScriptActions { get; set; }
```

```vbnet
Public Property DocumentLevelJavaScriptActions As String()
```

### Examples

The following example explicitly removes document-level script actions while producing a clean PDF export.

```csharp
SaveSettings saveSettings = new()
{
    DocumentLevelJavaScriptActions = Array.Empty<string>()
};
textControl.Save("clean-report.pdf", StreamType.AdobePDF, saveSettings);
```

```vbnet
Dim saveSettings As New SaveSettings() With {
    .DocumentLevelJavaScriptActions = Array.Empty(Of String)()
}
textControl.Save("clean-report.pdf", StreamType.AdobePDF, saveSettings)
```

### Limitations

PDF only, not PDF/A.

---

## Nearby

- **Previous:** [SaveSettings.DocumentKeywords Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/documentkeywords-property/llms-full.txt)
- **Next:** [SaveSettings.DocumentSubject Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/documentsubject-property/llms-full.txt)
