Class GraphicsCheckUtil
- java.lang.Object
-
- com.itextpdf.pdfua.checkers.utils.GraphicsCheckUtil
-
public final class GraphicsCheckUtil extends java.lang.Object
Class that provides methods for checking PDF/UA compliance of graphics elements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GraphicsCheckUtil.GraphicsHandler
Helper class that checks the conformance of graphics tags while iterating the tag tree structure.
-
Field Summary
Fields Modifier and Type Field Description private PdfUAValidationContext
context
-
Constructor Summary
Constructors Constructor Description GraphicsCheckUtil(PdfUAValidationContext context)
Creates a newGraphicsCheckUtil
instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
checkLayoutElement(Image image)
Checks if image has alternative description or actual text.static void
checkLayoutImage(Image image)
Deprecated.This method is an artifact and will be removed.static ITagTreeIteratorHandler
createFigureTagHandler()
Deprecated.This method is an artifact and will be removed.private static boolean
hasAtleastOneValidValue(java.lang.Object altText, java.lang.Object actualText)
-
-
-
Field Detail
-
context
private final PdfUAValidationContext context
-
-
Constructor Detail
-
GraphicsCheckUtil
public GraphicsCheckUtil(PdfUAValidationContext context)
Creates a newGraphicsCheckUtil
instance.- Parameters:
context
- The validation context.
-
-
Method Detail
-
checkLayoutImage
@Deprecated public static void checkLayoutImage(Image image)
Deprecated.This method is an artifact and will be removed.WARNING! This method is an artifact and currently does nothing. It is kept to ensure backward binary compatibility- Parameters:
image
- image to check- Throws:
PdfUAConformanceException
- if image doesn't have alternative description or actual text
-
createFigureTagHandler
@Deprecated public static ITagTreeIteratorHandler createFigureTagHandler()
Deprecated.This method is an artifact and will be removed.WARNING! This method is an artifact and currently does nothing. It is kept to ensure backward binary compatibility- Returns:
ITagTreeIteratorHandler
always null
-
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)
-
-