Click or drag to resize

PdfWebControlLiteCspSaferRendering Property

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

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

Property Value

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

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

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

If trying to prevent all inline JavaScript, the DisablePdfJavaScript property should also be set to true, preventing PDF form field JavaScript from being run. (Which will also cause some calculation and formatting scripts to no longer function.)

See Also