Click or drag to resize

PdfWebControlDisablePdfJavaScript Property

Gets or sets a value indicating whether JavaScript from the PDF document loaded in this PdfWebControl is disabled.

Namespace:  RadPdf.Web.UI
Assembly:  RadPdf (in RadPdf.dll) Version: 3.45.0.0 (3.45.0.0)
Syntax
public bool DisablePdfJavaScript { get; set; }

Property Value

Type: Boolean
true if JavaScript from the document (including calculation and formatting scripts) should be disabled; otherwise false JavaScript is enabled. The default is false.
Remarks

The PDF JavaScript feature allows JavaScript embedded in a PDF file to be executed, inline by RAD PDF! Depending upon the source of your PDF documents, this may be a security concern. If using a Content Security Policy (CSP), disabling line JavaScript is generally recommended. For the most secure implementations of RAD PDF, Red Software recommends setting this property to true.

With PDF JavaScript disabled, RAD PDF attempts to safely reimplement the most commonly used calculation and formatting scripts, including "simplified field notation". In many cases, RAD PDF can continue to calculate and format a PDF Form without JavaScript.

Some PDF features, including complex PDF form field calculations and PDF form field formatting, rely on JavaScript execution. Disabling JavaScript will also disable these features.

Please contact Red Software for more information about PDF JavaScript and this feature.

See Also