public class Type0FontValidator extends FontValidator<Type0Container>
Modifier and Type | Field and Description |
---|---|
protected COSDocument |
cosDocument |
context, descriptorHelper, font, fontContainer
Constructor and Description |
---|
Type0FontValidator(PreflightContext context,
PDFont font) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkCIDSystemInfo(COSBase sysinfo)
Check the content of the CIDSystemInfo dictionary.
|
protected void |
checkCMapEncoding(COSBase encoding) |
protected void |
checkEncoding()
Check the CMap entry.
|
protected void |
checkMandatoryFields()
This methods extracts from the Font dictionary all mandatory fields.
|
protected FontValidator<? extends FontContainer> |
createCIDType0FontValidator(COSDictionary fDict)
Create the validation object for CIDType0 Font
|
protected FontValidator<? extends FontContainer> |
createCIDType2FontValidator(COSDictionary fDict)
Create the validation object for CIDType2 Font
|
protected FontValidator<? extends FontContainer> |
createDescendantValidator(COSDictionary cidFont) |
protected void |
processDescendantFont()
Extract the single CIDFont from the Descendant array.
|
void |
validate() |
checkToUnicode, getFontContainer, getSubSetPatternDelimiter, isSubSet
protected COSDocument cosDocument
public Type0FontValidator(PreflightContext context, PDFont font)
public void validate() throws ValidationException
validate
in class FontValidator<Type0Container>
ValidationException
protected void checkMandatoryFields()
protected void processDescendantFont() throws ValidationException
ValidationException
protected FontValidator<? extends FontContainer> createDescendantValidator(COSDictionary cidFont)
protected FontValidator<? extends FontContainer> createCIDType0FontValidator(COSDictionary fDict)
protected FontValidator<? extends FontContainer> createCIDType2FontValidator(COSDictionary fDict)
protected void checkEncoding()
checkEncoding
in class FontValidator<Type0Container>
encoding
- protected void checkCMapEncoding(COSBase encoding)
protected boolean checkCIDSystemInfo(COSBase sysinfo)
sysinfo
- Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.