Search
PdfExporter.SuppressUnmanagedCode Property
See Also
 





Suppress usage of unmanaged code.

Namespace: MindFusion.Diagramming.Export
Assembly: MindFusion.Diagramming.Export.Pdf

 Syntax

C#  Copy Code

public bool SuppressUnmanagedCode { get; set; }

Visual Basic  Copy Code

Public Property SuppressUnmanagedCode As Boolean

 Property Value

true to prevent the component from using unmanaged code; false to allow it. The default value is false.

 Remarks

Unmanaged code is not allowed to run when the ASP.NET security level is set to Medium Trust. However PdfExporter relies on native Win32 calls to get some precise font metrics which are otherwise inaccessible through the .NET base class library. To work around this, the component now comes with a "pdflib-fontrecords.xml" file that contains cached information about fonts. The FontCachePath property must point to the location of this file when SuppressUnmanagedCode is enabled.

Unmanaged code is also used to detect character encoding automatically. When it is suppressed, PDF encoding is always set to the value of DefaultEncoding.

 See Also