com.groupdocs.editor.options

Class FontExtractionOptions



  • public final class FontExtractionOptions
    extends Object

    Font extraction options control which fonts should be extracted and from where

    • Field Detail

      • ExtractAll

        public static final byte 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.
        See Also:
        Constant Field Values
      • ExtractAllEmbedded

        public static final byte 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.
        See Also:
        Constant Field Values
      • ExtractEmbeddedWithoutSystem

        public static final byte 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.
        See Also:
        Constant Field Values
      • NotExtract

        public static final byte NotExtract

        Does not extract any font resource neither from document not from the system. Default value.

        See Also:
        Constant Field Values
    • Method Detail

      • getFontExtractionOptions

        public static byte[] getFontExtractionOptions()