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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.pdfbox.pdmodel.font.PDFontLikeprotected final org.apache.pdfbox.cos.COSDictionaryFields inherited from class FontValidator
context, descriptorHelper, fontContainer -
Constructor Summary
ConstructorsConstructorDescriptionSimpleFontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDFontLike font, org.apache.pdfbox.cos.COSDictionary fontDictionary, T fContainer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected abstract voidprotected voidvoidvalidate()Call this method to validate the font wrapped by this object.Methods inherited from class FontValidator
checkEncoding, checkToUnicode, getFontContainer
-
Field Details
-
font
protected final org.apache.pdfbox.pdmodel.font.PDFontLike font -
fontDictionary
protected final org.apache.pdfbox.cos.COSDictionary fontDictionary
-
-
Constructor Details
-
SimpleFontValidator
public SimpleFontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.PDFontLike font, org.apache.pdfbox.cos.COSDictionary fontDictionary, T fContainer)
-
-
Method Details
-
validate
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:
validatein classFontValidator<T extends FontContainer>- Throws:
ValidationException
-
checkMandatoryField
protected void checkMandatoryField() -
createFontDescriptorHelper
protected abstract void createFontDescriptorHelper() -
processFontDescriptorValidation
protected void processFontDescriptorValidation()
-