public class Type0FontValidator extends FontValidator<Type0Container>
| Modifier and Type | Field and Description |
|---|---|
protected COSDocument |
cosDocument |
protected PDFont |
font |
context, descriptorHelper, 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, getFontContainerprotected PDFont font
protected COSDocument cosDocument
public Type0FontValidator(PreflightContext context, PDFont font)
public void validate()
throws ValidationException
validate in class FontValidator<Type0Container>ValidationExceptionprotected void checkMandatoryFields()
protected void processDescendantFont()
throws ValidationException
ValidationException - if there is an error
validating the CIDFont.protected FontValidator<? extends FontContainer> createDescendantValidator(COSDictionary cidFont)
protected FontValidator<? extends FontContainer> createCIDType0FontValidator(COSDictionary fDict)
protected FontValidator<? extends FontContainer> createCIDType2FontValidator(COSDictionary fDict)
fDict - a CIDType2 font dictionary.protected void checkEncoding()
checkEncoding in class FontValidator<Type0Container>protected void checkCMapEncoding(COSBase encoding)
protected boolean checkCIDSystemInfo(COSBase sysinfo)
sysinfo - Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.