Top Fields Constructors Methods
org.apache.pdfbox.preflight.font

public abstract Class SimpleFontValidator<T extends FontContainer>

extends FontValidator<T extends FontContainer>
Class Inheritance
Known Direct Subclasses
org.apache.pdfbox.preflight.font.TrueTypeFontValidator, org.apache.pdfbox.preflight.font.Type1FontValidator, org.apache.pdfbox.preflight.font.DescendantFontValidator
Static Imports
org.apache.pdfbox.preflight.PreflightConstants.ERROR_FONTS_DICTIONARY_INVALID

Field Summary

Modifier and TypeField and Description
protected final PDFontLike
protected final COSDictionary
Inherited from org.apache.pdfbox.preflight.font.FontValidator:
contextdescriptorHelperfontContainer

Constructor Summary

AccessConstructor and Description
public
SimpleFontValidator(PreflightContext context, PDFontLike font, COSDictionary fontDictionary, T fContainer)

Method Summary

Modifier and TypeMethod and Description
protected void
protected abstract void
protected void
public void
validate()

Implements abstract org.apache.pdfbox.preflight.font.FontValidator.validate.

Call this method to validate the font wrapped by this object.

Inherited from org.apache.pdfbox.preflight.font.FontValidator:
checkEncodingcheckToUnicodegetFontContainer

Field Detail

fontback to summary
protected final PDFontLike font
fontDictionaryback to summary
protected final COSDictionary fontDictionary

Constructor Detail

SimpleFontValidatorback to summary
public SimpleFontValidator(PreflightContext context, PDFontLike font, COSDictionary fontDictionary, T fContainer)

Method Detail

checkMandatoryFieldback to summary
protected void checkMandatoryField()
createFontDescriptorHelperback to summary
protected abstract void createFontDescriptorHelper()
processFontDescriptorValidationback to summary
protected void processFontDescriptorValidation()
validateback to summary
public void validate() throws ValidationException

Implements abstract org.apache.pdfbox.preflight.font.FontValidator.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.

Annotations
@Override