Skip to content

PDFJavaScriptBlock

Namespace: O2S.Components.PDF4NET

Defines a block of JavaScript code.

public class PDFJavaScriptBlock

Inheritance ObjectPDFJavaScriptBlock

Constructors

PDFJavaScriptBlock()

Initializes a new PDFJavaScriptBlock object.

public PDFJavaScriptBlock()

PDFJavaScriptBlock(String)

Initializes a new PDFJavaScriptBlock object.

public PDFJavaScriptBlock(string javaScript)

Parameters

javaScript String
The JavaScript code to be included in the fragment.


Properties

Name

Gets or sets the name.

public string Name { get; set; }

Property Value

String
The name associated with the JavaScript block.


SourceCode

Gets or sets the JavaScript source code.

public string SourceCode { get; set; }

Property Value

String
JavaScript source code.