Click or drag to resize

PdfWebControlLite.CspSaferRendering Property

Gets or sets a value representing if the PdfWebControlLite 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: 4.4.0.0 (4.4.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
This website uses cookies to identify your session and other necessary functions. By using this website, you are agreeing to our Terms of Use and Privacy Policy (updated April 26 2021).
Learn About Cookies
Got it!