public class Type0FontValidator extends FontValidator<Type0Container>
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.pdfbox.pdmodel.font.PDFont |
font |
context, descriptorHelper, fontContainer| Constructor and Description |
|---|
Type0FontValidator(PreflightContext context,
org.apache.pdfbox.pdmodel.font.PDFont font) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkCIDSystemInfo(org.apache.pdfbox.cos.COSDictionary cidSysInfo)
Check the content of the CIDSystemInfo dictionary.
|
protected void |
checkCMapEncoding(org.apache.pdfbox.cos.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<org.apache.pdfbox.pdmodel.font.PDCIDFontType0>> |
createCIDType0FontValidator(org.apache.pdfbox.cos.COSDictionary fDict)
Create the validation object for CIDType0 Font
|
protected FontValidator<? extends FontContainer<org.apache.pdfbox.pdmodel.font.PDCIDFontType2>> |
createCIDType2FontValidator(org.apache.pdfbox.cos.COSDictionary fDict)
Create the validation object for CIDType2 Font
|
protected FontValidator<? extends FontContainer<? extends org.apache.pdfbox.pdmodel.font.PDCIDFont>> |
createDescendantValidator(org.apache.pdfbox.cos.COSDictionary cidFont) |
protected void |
processDescendantFont()
Extract the single CIDFont from the descendant array.
|
void |
validate() |
checkToUnicode, getFontContainerpublic Type0FontValidator(PreflightContext context, org.apache.pdfbox.pdmodel.font.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<? extends org.apache.pdfbox.pdmodel.font.PDCIDFont>> createDescendantValidator(org.apache.pdfbox.cos.COSDictionary cidFont)
protected FontValidator<? extends FontContainer<org.apache.pdfbox.pdmodel.font.PDCIDFontType0>> createCIDType0FontValidator(org.apache.pdfbox.cos.COSDictionary fDict)
protected FontValidator<? extends FontContainer<org.apache.pdfbox.pdmodel.font.PDCIDFontType2>> createCIDType2FontValidator(org.apache.pdfbox.cos.COSDictionary fDict)
fDict - a CIDType2 font dictionary.protected void checkEncoding()
checkEncoding in class FontValidator<Type0Container>protected void checkCMapEncoding(org.apache.pdfbox.cos.COSBase encoding)
protected boolean checkCIDSystemInfo(org.apache.pdfbox.cos.COSDictionary cidSysInfo)
cidSysInfo - Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.