Click or drag to resize

PdfWebControlCspSaferRendering Property

Gets or sets a value representing if the PdfWebControl control should be rendered without inline scripts or styles, allowing for safer compliance with a CSP (Content Security Policy).

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

Property Value

Type: Boolean
true if HTML tags should be rendered without inline scripts or style; otherwise false tags will be rendered with inline scripts or styles. The default is false.
Remarks

This can be used to ask RAD PDF to render without inline scripts or styles, allowing for safe compliance with a CSP (Content Security Policy). This may cause the iframe to show a border or frame around it.

If true, it is recommended that a page level style set the border for iframe elements to 0.

If true, the control will act as if the DisablePdfJavaScript property is also true, preventing PDF form field JavaScript from being run, which may cause some calculation and formatting scripts to no longer function. The most commonly used calculation and formatting scripts are safely reimplemented. Please contact Red Software for more information.

In a future version, this property's default may change to true.

See Also