Package org.apache.pdfbox.preflight.font
Class Type3FontValidator
- java.lang.Object
-
- org.apache.pdfbox.preflight.font.FontValidator<Type3Container>
-
- org.apache.pdfbox.preflight.font.Type3FontValidator
-
public class Type3FontValidator extends FontValidator<Type3Container>
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.pdfbox.pdmodel.font.PDType3Fontfontprotected org.apache.pdfbox.cos.COSDictionaryfontDictionary-
Fields inherited from class org.apache.pdfbox.preflight.font.FontValidator
context, descriptorHelper, fontContainer
-
-
Constructor Summary
Constructors Constructor Description Type3FontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDType3Font font)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckEncoding()For a Type3 font, the mapping between the Character Code and the Character name is entirely defined in the /Encoding entry.protected voidcheckMandatoryField()java.util.List<java.lang.Float>getWidths(org.apache.pdfbox.pdmodel.font.PDFont font)voidvalidate()-
Methods inherited from class org.apache.pdfbox.preflight.font.FontValidator
checkToUnicode, getFontContainer
-
-
-
-
Constructor Detail
-
Type3FontValidator
public Type3FontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDType3Font font)
-
-
Method Detail
-
validate
public void validate() throws ValidationException- Specified by:
validatein classFontValidator<Type3Container>- Throws:
ValidationException
-
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:
checkEncodingin classFontValidator<Type3Container>
-
getWidths
public java.util.List<java.lang.Float> getWidths(org.apache.pdfbox.pdmodel.font.PDFont font)
-
-