Class PDType1AfmPfbFont

  • All Implemented Interfaces:
    COSObjectable

    public class PDType1AfmPfbFont
    extends PDType1Font
    This is implementation of the Type1 Font with a afm and a pfb file.
    Version:
    $Revision: 1.5 $
    Author:
    Michael Niedermair
    • Constructor Detail

      • PDType1AfmPfbFont

        public PDType1AfmPfbFont​(PDDocument doc,
                                 java.lang.String afmname)
                          throws java.io.IOException
        Create a new object.
        Parameters:
        doc - The PDF document that will hold the embedded font.
        afmname - The font filename.
        Throws:
        java.io.IOException - If there is an error loading the data.
      • PDType1AfmPfbFont

        public PDType1AfmPfbFont​(PDDocument doc,
                                 java.io.InputStream afm,
                                 java.io.InputStream pfb)
                          throws java.io.IOException
        Create a new object.
        Parameters:
        doc - The PDF document that will hold the embedded font.
        afm - The afm input.
        pfb - The pfb input.
        Throws:
        java.io.IOException - If there is an error loading the data.
    • Method Detail

      • clear

        public void clear()
        Description copied from class: PDFont
        Calling this will release all cached information.
        Overrides:
        clear in class PDType1Font