Table of Contents

Property Script

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

Script

Gets or sets the text string containing the JavaScript script to be executed when the action is triggered.

public string? Script { get; set; }

Property Value

string

The text string containing the JavaScript script to be executed when the action is triggered.

Remarks

The value can be null if the Operation is not null.

When operation is not null, you can remove the script by setting null value for this property.

Exceptions

UnexpectedStructureException

The internal PDF structure does not contain the corresponding value but the value is required because of the presence or absence of other values. Or the value exists, but has an unexpected type.

PdfException

The library can not parse a stream with JavaScript.

ArgumentNullException

value is null but Operation is also null.