DocumentLevelJavaScriptActions Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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
public string[] DocumentLevelJavaScriptActions { get; set; }Public Property DocumentLevelJavaScriptActions As String()Examples
The following example explicitly removes document-level script actions while producing a clean PDF export.
SaveSettings saveSettings = new()
{
DocumentLevelJavaScriptActions = Array.Empty<string>()
};
textControl.Save("clean-report.pdf", StreamType.AdobePDF, saveSettings);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.