public class ExtGStateValidationProcess extends AbstractProcess
Constructor and Description |
---|
ExtGStateValidationProcess() |
Modifier and Type | Method and Description |
---|---|
private void |
checkBlendMode(PreflightContext context,
COSDictionary egs)
This method checks the BM value of the ExtGState dictionary.
|
private void |
checkFont(PreflightContext context,
COSDictionary egs)
This method checks a Font array in the ExtGState dictionary.
|
private void |
checkLowerCA(PreflightContext context,
COSDictionary egs)
This method checks the "ca" value of the ExtGState dictionary.
|
private void |
checkSoftMask(PreflightContext context,
COSDictionary egs)
This method checks the SMask value of the ExtGState dictionary.
|
protected void |
checkTR2Key(PreflightContext context,
COSDictionary egs)
Check the TR2 entry.
|
protected void |
checkTRKey(PreflightContext context,
COSDictionary egs)
Check the TR entry.
|
private void |
checkUpperCA(PreflightContext context,
COSDictionary egs)
This method checks the "CA" value of the ExtGState dictionary.
|
java.util.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)
Validate the ExtGState dictionaries.
|
protected void |
validateFonts(PreflightContext context,
java.util.List<COSDictionary> listOfExtGState)
Validate fonts in all ExtGState dictionaries of this container.
|
protected void |
validateTransparencyRules(PreflightContext context,
java.util.List<COSDictionary> listOfExtGState)
Validate transparency rules in all ExtGState dictionaries of this container.
|
addFontError, addValidationError, addValidationErrors
public 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 java.util.List<COSDictionary> extractExtGStateDictionaries(PreflightContext context, COSDictionary egsEntry) throws ValidationException
context
- the context which contains the Resource dictionary.egsEntry
- a resource COSDictionary.ValidationException
- thrown if an Extended Graphic State isn't valid.protected void validateTransparencyRules(PreflightContext context, java.util.List<COSDictionary> listOfExtGState)
context
- the preflight context.listOfExtGState
- a list of ExtGState COSDictionaries.protected void validateFonts(PreflightContext context, java.util.List<COSDictionary> listOfExtGState) throws ValidationException
context
- the preflight context.listOfExtGState
- a list of ExtGState COSDictionaries.ValidationException
private void checkFont(PreflightContext context, COSDictionary egs) throws ValidationException
context
- the preflight context.egs
- the Graphic state to checkValidationException
private void checkSoftMask(PreflightContext context, COSDictionary egs)
context
- the preflight context.egs
- the Graphic state to checkprivate void checkBlendMode(PreflightContext context, COSDictionary egs)
context
- the preflight context * @param egs the graphic state to checkprivate void checkUpperCA(PreflightContext context, COSDictionary egs)
context
- the preflight context.egs
- the graphic state to checkprivate void checkLowerCA(PreflightContext context, COSDictionary egs)
context
- the preflight context.egs
- the graphic state to checkprotected void checkTRKey(PreflightContext context, COSDictionary egs)
context
- the preflight contextegs
- the graphic state to checkprotected void checkTR2Key(PreflightContext context, COSDictionary egs)
context
- the preflight contextegs
- the graphic state to check