FontExtractionOptions
Inheritance: java.lang.Object
public final class FontExtractionOptions
Font extraction options control which fonts should be extracted and from where
Fields
Field | Description |
---|---|
NotExtract | Does not extract any font resource neither from document not from the system. |
ExtractAllEmbedded | Extracts all font resources, which are embedded into the input Word document, regardless of what they are: custom or system. |
ExtractEmbeddedWithoutSystem | Extracts only those embedded font resources, which are custom (not system) |
ExtractAll | Tries to extract all fonts, which are used in the input WordProcessing document, including system fonts. |
Methods
Method | Description |
---|---|
getFontExtractionOptions() |
NotExtract
public static final int NotExtract
Does not extract any font resource neither from document not from the system. Default value.
ExtractAllEmbedded
public static final int ExtractAllEmbedded
Extracts all font resources, which are embedded into the input Word document, regardless of what they are: custom or system.
Converter finds and extracts all 100% font resources, which are embedded into the input WordProcessing document, but it doesn’t determine whether they are system or custom; it doesn’t touch Windows Registry or system folders at all.
ExtractEmbeddedWithoutSystem
public static final int ExtractEmbeddedWithoutSystem
Extracts only those embedded font resources, which are custom (not system)
Converter finds and extracts all embedded font resources, and then tries to determine which of these fonts are system, and which - not. In order to achieve this, converter tries to obtain a list of all system fonts by using Windows Registry and system folders, and then compares this list with a set of embedded fonts. As a result, only subset of those embedded fonts, which were not found in system, will be returned.
ExtractAll
public static final int ExtractAll
Tries to extract all fonts, which are used in the input WordProcessing document, including system fonts.
Converter is analyzing an input WordProcessing document and finds all fonts, which are used there. If all of these fonts are embedded into the input document, converter extracts and returns them. Otherwise, if a collection of embedded fonts doesn’t cover all used fonts in the document, or is empty, converter tries to extract these font resources from system, by using Windows Registry and system folders.
getFontExtractionOptions()
public static int[] getFontExtractionOptions()
Returns: int[]