Click or drag to resize

PdfLiteSessionSerializer Constructor (Boolean)

Creates a new instance of the PdfLiteSessionSerializer class.

Namespace:  RadPdf.Lite
Assembly:  RadPdfStandard (in RadPdfStandard.dll) Version: 4.4.0.0 (4.4.0.0)
Syntax
public PdfLiteSessionSerializer(
	bool allowBinaryFormatterFallback
)

Parameters

allowBinaryFormatterFallback
Type: System.Boolean
A value representing if the legacy BinaryFormatter can be used if decoding fails with the new secure serializer
Remarks

By default, allowBinaryFormatterFallback is true to maximize backwards compatibility.

allowBinaryFormatterFallback should only be set to true if the legacy serialized PdfLiteSession objects were stored security and now needs to be read as well. Secure implementations of RAD PDF should set DefaultFormatter to a new instance of PdfLiteSessionSerializer with allowBinaryFormatterFallback set to false or another secure serializer.

.NET 5 does not allow the use of the BinaryFormatter and will throw an exception if falling back to it.

A future version will change the default to false to enhance security.

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!