Package org.apache.pdfbox.preflight.font
Class SimpleFontValidator<T extends FontContainer>
- java.lang.Object
-
- org.apache.pdfbox.preflight.font.FontValidator<T>
-
- org.apache.pdfbox.preflight.font.SimpleFontValidator<T>
-
- Direct Known Subclasses:
DescendantFontValidator
,TrueTypeFontValidator
,Type1FontValidator
public abstract class SimpleFontValidator<T extends FontContainer> extends FontValidator<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected PDFontLike
font
protected COSDictionary
fontDictionary
-
Fields inherited from class org.apache.pdfbox.preflight.font.FontValidator
context, descriptorHelper, fontContainer
-
-
Constructor Summary
Constructors Constructor Description SimpleFontValidator(PreflightContext context, PDFontLike font, COSDictionary fontDictionary, T fContainer)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
checkMandatoryField()
protected abstract void
createFontDescriptorHelper()
protected void
processFontDescriptorValidation()
void
validate()
Call this method to validate the font wrapped by this object.-
Methods inherited from class org.apache.pdfbox.preflight.font.FontValidator
checkEncoding, checkToUnicode, getFontContainer
-
-
-
-
Field Detail
-
font
protected PDFontLike font
-
fontDictionary
protected COSDictionary fontDictionary
-
-
Constructor Detail
-
SimpleFontValidator
public SimpleFontValidator(PreflightContext context, PDFontLike font, COSDictionary fontDictionary, T fContainer)
-
-
Method Detail
-
validate
public void validate() throws ValidationException
Call this method to validate the font wrapped by this object. If the validation failed, the error is updated in the FontContainer with the right error code. Errors that are saved in the container will be added on the PreflightContext if the font is used later.- Specified by:
validate
in classFontValidator<T extends FontContainer>
- Throws:
ValidationException
-
checkMandatoryField
protected void checkMandatoryField()
-
createFontDescriptorHelper
protected abstract void createFontDescriptorHelper()
-
processFontDescriptorValidation
protected void processFontDescriptorValidation()
-
-