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: (.NET 4.5.2, x86)
public PdfJavaScriptActionListCollection GlobalJavaScriptActions { get; }

Property Value

Type: PdfJavaScriptActionListCollection
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