public class ExtGStateValidationProcess extends AbstractProcess
Constructor and Description |
---|
ExtGStateValidationProcess() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkTR2Key(PreflightContext context,
COSDictionary egs)
Check the TR2 entry.
|
protected void |
checkTRKey(PreflightContext context,
COSDictionary egs)
Check the TR entry.
|
List<COSDictionary> |
extractExtGStateDictionaries(PreflightContext context,
COSDictionary egsEntry)
Create a list Of ExtGState dictionaries using the given Resource dictionary and the COSDocument.
|
void |
validate(PreflightContext context) |
protected void |
validateTransparencyRules(PreflightContext context,
List<COSDictionary> listOfExtGState)
Validate all ExtGState dictionaries of this container
|
addValidationError, addValidationErrors
public void validate(PreflightContext context) throws ValidationException
ValidationException
public List<COSDictionary> extractExtGStateDictionaries(PreflightContext context, COSDictionary egsEntry) throws ValidationException
context
- the context which contains the Resource dictionaryresources
- a resource COSDictionaryValidationException
- thrown if a the Extended Graphic State isn't validprotected void validateTransparencyRules(PreflightContext context, List<COSDictionary> listOfExtGState)
protected void checkTRKey(PreflightContext context, COSDictionary egs)
egs
- the graphic state to checkprotected void checkTR2Key(PreflightContext context, COSDictionary egs)
egs
- the graphic state to checkCopyright © 2002–2015 The Apache Software Foundation. All rights reserved.