Class PDFontFactory


  • public final class PDFontFactory
    extends Object
    Creates the appropriate font subtype based on information in the dictionary.
    • Method Detail

      • createFont

        public static PDFont createFont​(COSDictionary dictionary)
                                 throws IOException
        Creates a new PDFont instance with the appropriate subclass.
        Parameters:
        dictionary - a font dictionary
        Returns:
        a PDFont instance, based on the SubType entry of the dictionary
        Throws:
        IOException - if something goes wrong
      • createDefaultFont

        public static PDFont createDefaultFont()
                                        throws IOException
        Create a default font.
        Returns:
        a default font
        Throws:
        IOException - if something goes wrong