Class Type3FontValidator

    • Field Detail

      • font

        protected final org.apache.pdfbox.pdmodel.font.PDType3Font font
      • fontDictionary

        protected final org.apache.pdfbox.cos.COSDictionary fontDictionary
    • Constructor Detail

      • Type3FontValidator

        public Type3FontValidator​(PreflightContext context,
                                  org.apache.pdfbox.pdmodel.font.PDType3Font font)
    • Method Detail

      • checkMandatoryField

        protected void checkMandatoryField()
      • checkEncoding

        protected void checkEncoding()
        For a Type3 font, the mapping between the Character Code and the Character name is entirely defined in the /Encoding entry. The /Encoding Entry can be a Name (For the 5 predefined encodings) or a dictionary. If it is a dictionary, the /Differences array contains the correspondence between a character code and a set of character name which are different from the encoding entry of the dictionary. This method checks that the encoding is :
        • An existing encoding name.
        • A dictionary with an existing encoding name (the name is optional) and a well formed "Differences" array (the array is optional)
        Overrides:
        checkEncoding in class FontValidator<Type3Container>
      • getWidths

        public java.util.List<java.lang.Float> getWidths​(org.apache.pdfbox.pdmodel.font.PDFont font)