Class GraphicsCheckUtil
- java.lang.Object
-
- com.itextpdf.pdfua.checkers.utils.GraphicsCheckUtil
-
public final class GraphicsCheckUtil extends java.lang.ObjectClass that provides methods for checking PDF/UA compliance of graphics elements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphicsCheckUtil.GraphicsHandlerHelper class that checks the conformance of graphics tags while iterating the tag tree structure.
-
Field Summary
Fields Modifier and Type Field Description private PdfUAValidationContextcontext
-
Constructor Summary
Constructors Constructor Description GraphicsCheckUtil(PdfUAValidationContext context)Creates a newGraphicsCheckUtilinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckLayoutElement(Image image)Checks if image has alternative description or actual text.private static booleanhasAtLeastOneValidValue(java.lang.Object altText, java.lang.Object actualText)
-
-
-
Field Detail
-
context
private final PdfUAValidationContext context
-
-
Constructor Detail
-
GraphicsCheckUtil
public GraphicsCheckUtil(PdfUAValidationContext context)
Creates a newGraphicsCheckUtilinstance.- Parameters:
context- The validation context.
-
-
Method Detail
-
checkLayoutElement
public void checkLayoutElement(Image image)
Checks if image has alternative description or actual text.- Parameters:
image- the image to check
-
hasAtLeastOneValidValue
private static boolean hasAtLeastOneValidValue(java.lang.Object altText, java.lang.Object actualText)
-
-