Click or drag to resize

PdfLiteSessionSerializer Constructor (Boolean)

Creates a new instance of the PdfLiteSessionSerializer class.

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

Parameters

allowBinaryFormatterFallback
Type: SystemBoolean
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