Click or drag to resize

ExcelToPdfCUnicodeOptions Class

Class with properties which allows to specify Unicode options, such as "Fonts" directory etc
Inheritance Hierarchy
SystemObject
  SautinSoftExcelToPdfCUnicodeOptions

Namespace: SautinSoft
Assembly: SautinSoft.ExcelToPdf (in SautinSoft.ExcelToPdf.dll) Version: 2023.11.22
Syntax
public class CUnicodeOptions

The ExcelToPdfCUnicodeOptions type exposes the following members.

Constructors
 NameDescription
Public methodExcelToPdfCUnicodeOptions Creates an instance of class ExcelToPdfCUnicodeOptions.
Top
Properties
 NameDescription
Public propertyCode exampleDetectFontsDirectory Allows to specify type of finding *.tff files. This is necessary to insert Unicode inside PDF. Default value: Auto
Public propertyCode exampleFontsDirectory Full local path to fonts directory (any folder with *.ttf files). Default value: "c:\windows\fonts\"
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
Use properties from this class only through the property UnicodeOptions See picture:

Example
SautinSoft.ExcelToPdf p = new SautinSoft.ExcelToPdf();
p.UnicodeOptions.DetectFontsDirectory = SautinSoft.ExcelToPdf.CUnicodeOptions.eUnicodeDetectFontsDirectory.Auto;
//p.UnicodeOptions.FontsDirectory = @"c:\windows\fonts\";
p.UnicodeOptions.FontsDirectory = Path.Combine(Server.MapPath(""), @"Fonts\");
See Also