Apitron.PDF.Kit library for .NET
SystemObject
Apitron.PDF.Kit.ConfigurationEngineSettings
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Top
Top
Top
Top
This class represents a mechanism to configure processing of the PDF.
Inheritance Hierarchy
Apitron.PDF.Kit.ConfigurationEngineSettings
Namespace: Apitron.PDF.Kit.Configuration
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax
The EngineSettings type exposes the following members.
Constructors
Name | Description | |
---|---|---|
EngineSettings |
Initializes a new instance of the EngineSettings class.
|
Properties
Name | Description | |
---|---|---|
GlobalSettings |
Gets the global settings.
| |
LogWriter |
Gets or sets the log writer.
| |
MaxThreadsCount |
Gets or sets the maximum threads count to be used during processing PDF documents.
Valid values: 1 - 8.
| |
MemoryAllocationMode |
Gets or sets the memory allocation mode.
| |
ResourceSizeLimit |
Defines the resouce size limit in bytes that controls whether the resouce should be loaded to RAM or cached to disk. Valid only if the corressponding setting is set.
See MemoryAllocationMode property.
| |
SubstitutionFontMappings |
Gets the special font mappings.
To add your substition-set please use the following cunstruction: EngineSettings.FontSubstitutionMapping.Add("KozMinPro-Regular", new string[] { "Kozuka-Mincho-Pro-VI-R", "KozMinProVI-Regular", "MS Mincho", "MS Gothic" });
Where "KozMinPro-Regular" is pdf font name and the set is font names that will be used during font mapping.
| |
SystemFontPaths |
A read-only collection of system folders where the rendering engine tries to find font files by default,
e.g. for windows it will be %WINDOWS_FOLDER%\fonts.
If you wish to add custom font search path see UserFontPaths property.
| |
TraceLog |
Gets or sets a value indicating whether to trace log.
| |
UserFontMappings |
Gets a user font mappings dictionary, which can be used to map fonts used in document to a font with a particular name when font substitution happens.
These mappings are being evaluated in the order of addition when the engine needs to resolve the font.
Special font names are supported: "*" maps to all fonts.
| |
UserFontPaths |
An editable collection of user-defined folders where the pdf kit engine tries to find font files in addition to system folders.
If the application is opened in trusted mode the paths are expected to be file system based, otherwise they will be processed as isolated storage based paths.
An ArgumentException will be thrown as a result of attemp to add null or empty value.
|
Methods
Name | Description | |
---|---|---|
DeleteTemporaryFiles |
Enforces deletion of the temporary files. All temporary files those are not in use will be removed.
| |
RegisterUserFont |
Registers the font in library's font cache.
| |
UnregisterUserFonts |
Unregisters all user fonts from library's font cache.
|
Events
Name | Description | |
---|---|---|
FontSubstitutionRequest |
Occurs when font substitution request occurred. This event allows user to select a required font mapping.
|
See Also