public class ExtGStateValidationProcess extends AbstractProcess
| Constructor and Description |
|---|
ExtGStateValidationProcess() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkTR2Key(PreflightContext context,
org.apache.pdfbox.cos.COSDictionary egs)
Check the TR2 entry.
|
protected void |
checkTRKey(PreflightContext context,
org.apache.pdfbox.cos.COSDictionary egs)
Check the TR entry.
|
List<org.apache.pdfbox.cos.COSDictionary> |
extractExtGStateDictionaries(org.apache.pdfbox.cos.COSDictionary extGStates)
Create a list of ExtGState dictionaries using the given Resource dictionary and the COSDocument.
|
void |
validate(PreflightContext context)
Validate the ExtGState dictionaries.
|
protected void |
validateFonts(PreflightContext context,
List<org.apache.pdfbox.cos.COSDictionary> listOfExtGState)
Validate fonts in all ExtGState dictionaries of this container.
|
protected void |
validateTransparencyRules(PreflightContext context,
List<org.apache.pdfbox.cos.COSDictionary> listOfExtGState)
Validate transparency rules in all ExtGState dictionaries of this container.
|
addFontError, addValidationError, addValidationErrorspublic void validate(PreflightContext context) throws ValidationException
context - the context which contains the Resource dictionary.ValidationException - thrown if an Extended Graphic State isn't valid.public List<org.apache.pdfbox.cos.COSDictionary> extractExtGStateDictionaries(org.apache.pdfbox.cos.COSDictionary extGStates) throws ValidationException
extGStates - a resource COSDictionary.ValidationException - thrown if an Extended Graphic State isn't valid.protected void validateTransparencyRules(PreflightContext context, List<org.apache.pdfbox.cos.COSDictionary> listOfExtGState)
context - the preflight context.listOfExtGState - a list of ExtGState COSDictionaries.protected void validateFonts(PreflightContext context, List<org.apache.pdfbox.cos.COSDictionary> listOfExtGState) throws ValidationException
context - the preflight context.listOfExtGState - a list of ExtGState COSDictionaries.ValidationExceptionprotected void checkTRKey(PreflightContext context, org.apache.pdfbox.cos.COSDictionary egs)
context - the preflight contextegs - the graphic state to checkprotected void checkTR2Key(PreflightContext context, org.apache.pdfbox.cos.COSDictionary egs)
context - the preflight contextegs - the graphic state to checkCopyright © 2002–2025 The Apache Software Foundation. All rights reserved.