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

public abstract Class DescendantFontValidator<T extends FontContainer>

extends SimpleFontValidator<T extends FontContainer>
Class Inheritance
Known Direct Subclasses
org.apache.pdfbox.preflight.font.CIDType0FontValidator, org.apache.pdfbox.preflight.font.CIDType2FontValidator
Static Imports
org.apache.pdfbox.preflight.PreflightConstants.ERROR_FONTS_CIDKEYED_CIDTOGID, .PreflightConstants.ERROR_FONTS_CIDKEYED_SYSINFO, .PreflightConstants.ERROR_FONTS_DICTIONARY_INVALID

Field Summary

Inherited from org.apache.pdfbox.preflight.font.SimpleFontValidator:
fontfontDictionary

Constructor Summary

AccessConstructor and Description
public
DescendantFontValidator(PreflightContext context, PDCIDFont font, T fContainer)

Method Summary

Modifier and TypeMethod and Description
protected void
checkCIDSystemInfo(COSDictionary sysinfo)

Check the content of the CIDSystemInfo dictionary.

protected abstract void
checkCIDToGIDMap(COSBase ctog)

This method checks the CIDtoGIDMap entry of the Font dictionary.

protected void
checkCIDToGIDMap(COSBase ctog, boolean
true for CIDType2 , false for CIDType0
mandatory
)

This method checks the CIDtoGIDMap entry of the Font dictionary.

protected void
Inherited from org.apache.pdfbox.preflight.font.SimpleFontValidator:
createFontDescriptorHelperprocessFontDescriptorValidationvalidate

Constructor Detail

DescendantFontValidatorback to summary
public DescendantFontValidator(PreflightContext context, PDCIDFont font, T fContainer)

Method Detail

checkCIDSystemInfoback to summary
protected void checkCIDSystemInfo(COSDictionary sysinfo)

Check the content of the CIDSystemInfo dictionary. A CIDSystemInfo dictionary must contain :

  • a Name - Registry
  • a Name - Ordering
  • a Integer - Supplement
checkCIDToGIDMapback to summary
protected abstract void checkCIDToGIDMap(COSBase ctog)

This method checks the CIDtoGIDMap entry of the Font dictionary. call the checkCIDToGIDMap(COSBase, boolean) with right parameters according to the instance of DescendantFontValidator

checkCIDToGIDMapback to summary
protected void checkCIDToGIDMap(COSBase ctog, boolean mandatory)

This method checks the CIDtoGIDMap entry of the Font dictionary. This element must be a Stream or a Name. If it is a name, it must be "Identity" otherwise, the PDF file isn't a PDF/A-1b. If the validation fails the list of errors in the FontContainer is updated. If the CIDtoGIDMap is a Stream, it is parsed as a CMap and the result is returned.

Parameters
mandatory:boolean

true for CIDType2 , false for CIDType0

checkMandatoryFieldback to summary
protected void checkMandatoryField()

Overrides org.apache.pdfbox.preflight.font.SimpleFontValidator.checkMandatoryField.

Annotations
@Override