Package org.apache.pdfbox.preflight.font
Class Type3FontValidator
java.lang.Object
org.apache.pdfbox.preflight.font.FontValidator<Type3Container>
org.apache.pdfbox.preflight.font.Type3FontValidator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.pdfbox.pdmodel.font.PDType3Fontprotected final org.apache.pdfbox.cos.COSDictionaryFields inherited from class org.apache.pdfbox.preflight.font.FontValidator
context, descriptorHelper, fontContainer -
Constructor Summary
ConstructorsConstructorDescriptionType3FontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDType3Font font) -
Method Summary
Methods inherited from class org.apache.pdfbox.preflight.font.FontValidator
checkToUnicode, getFontContainer
-
Field Details
-
font
protected final org.apache.pdfbox.pdmodel.font.PDType3Font font -
fontDictionary
protected final org.apache.pdfbox.cos.COSDictionary fontDictionary
-
-
Constructor Details
-
Type3FontValidator
public Type3FontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDType3Font font)
-
-
Method Details
-
validate
- 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
-