Click or drag to resize

PdfGeneratedDocumentGlobalJavaScriptActions Property

Gets the global java script actions that will be executed when the PDF document is opened. This is initialized to an empty collection.

Namespace:  Atalasoft.PdfDoc.Generating
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public PdfJavaScriptActionListCollection GlobalJavaScriptActions { get; }

Property Value

Type: PdfJavaScriptActionListCollection
Examples
This example illustrates the technique used internally by Atalasoft to make a document self-printing (via the SelfPrinting property.
PdfJavaScriptAction selfPrint = new PdfJavaScriptAction("this.print({bUI:true,bSilent:false,bShrinkToFit:true});");
document.GlobalJavaScriptActions.Add("AtalaSelfPrint", selfPrint);
See Also