Package com.itextpdf.forms.util
Class DrawingUtil
java.lang.Object
com.itextpdf.forms.util.DrawingUtil
Utility class to draw form fields
PdfFormField
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
drawCircle
(PdfCanvas canvas, float centerX, float centerY, float radius) Draws a circle with the specified radius.static void
Draws a cross with the specified width and height.private static void
drawPdfAAppearanceString
(PdfCanvas canvas, float width, float height, float moveX, float moveY, String appearanceString) static void
drawPdfACheck
(PdfCanvas canvas, float width, float height) Draws a PDF A compliant check mark in the specified rectangle.static void
drawPdfACheck
(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant check mark in the specified rectangle.static void
drawPdfACircle
(PdfCanvas canvas, float width, float height) Draws a PDF A compliant circle in the specified rectangle.static void
drawPdfACircle
(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant circle in the specified rectangle.static void
drawPdfACross
(PdfCanvas canvas, float width, float height) Draws a PDF A compliant cross in the specified rectangle.static void
drawPdfACross
(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant cross in the specified rectangle.static void
drawPdfADiamond
(PdfCanvas canvas, float width, float height) Draws a PDF A compliant diamond in the specified rectangle.static void
drawPdfADiamond
(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant diamond in the specified rectangle.static void
drawPdfASquare
(PdfCanvas canvas, float width, float height) Draws a PDF A compliant square in the specified rectangle.static void
drawPdfASquare
(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant square in the specified rectangle.static void
drawPdfAStar
(PdfCanvas canvas, float width, float height) Draws a PDF A compliant star in the specified rectangle.static void
drawPdfAStar
(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant star in the specified rectangle.
-
Field Details
-
check
- See Also:
-
circle
- See Also:
-
cross
- See Also:
-
diamond
- See Also:
-
square
- See Also:
-
star
- See Also:
-
-
Constructor Details
-
DrawingUtil
public DrawingUtil()
-
-
Method Details
-
drawPdfAAppearanceString
-
drawPdfACheck
public static void drawPdfACheck(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant check mark in the specified rectangle.- Parameters:
canvas
- the canvas to draw onwidth
- the width of the rectangleheight
- the height of the rectanglemoveX
- the x coordinate of the bottom left corner of the rectanglemoveY
- the y coordinate of the bottom left corner of the rectangle
-
drawPdfACheck
Draws a PDF A compliant check mark in the specified rectangle.- Parameters:
canvas
- the canvas to draw onwidth
- the width of the rectangleheight
- the height of the rectangle
-
drawPdfACircle
public static void drawPdfACircle(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant circle in the specified rectangle.- Parameters:
canvas
- the canvas to draw onwidth
- the width of the rectangleheight
- the height of the rectanglemoveX
- the x coordinate of the bottom left corner of the rectanglemoveY
- the y coordinate of the bottom left corner of the rectangle
-
drawPdfACircle
Draws a PDF A compliant circle in the specified rectangle.- Parameters:
canvas
- the canvas to draw onwidth
- the width of the rectangleheight
- the height of the rectangle
-
drawPdfACross
public static void drawPdfACross(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant cross in the specified rectangle.- Parameters:
canvas
- the canvas to draw onwidth
- the width of the rectangleheight
- the height of the rectanglemoveX
- the x coordinate of the bottom left corner of the rectanglemoveY
- the y coordinate of the bottom left corner of the rectangle
-
drawPdfACross
Draws a PDF A compliant cross in the specified rectangle.- Parameters:
canvas
- the canvas to draw onwidth
- the width of the rectangleheight
- the height of the rectangle
-
drawPdfADiamond
public static void drawPdfADiamond(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant diamond in the specified rectangle.- Parameters:
canvas
- the canvas to draw onwidth
- the width of the rectangleheight
- the height of the rectanglemoveX
- the x coordinate of the bottom left corner of the rectanglemoveY
- the y coordinate of the bottom left corner of the rectangle
-
drawPdfADiamond
Draws a PDF A compliant diamond in the specified rectangle.- Parameters:
canvas
- the canvas to draw onwidth
- the width of the rectangleheight
- the height of the rectangle
-
drawPdfASquare
public static void drawPdfASquare(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant square in the specified rectangle.- Parameters:
canvas
- the canvas to draw onwidth
- the width of the rectangleheight
- the height of the rectanglemoveX
- the x coordinate of the bottom left corner of the rectanglemoveY
- the y coordinate of the bottom left corner of the rectangle
-
drawPdfASquare
Draws a PDF A compliant square in the specified rectangle.- Parameters:
canvas
- the canvas to draw onwidth
- the width of the rectangleheight
- the height of the rectangle
-
drawPdfAStar
public static void drawPdfAStar(PdfCanvas canvas, float width, float height, float moveX, float moveY) Draws a PDF A compliant star in the specified rectangle.- Parameters:
canvas
- the canvas to draw onwidth
- the width of the rectangleheight
- the height of the rectanglemoveX
- the x coordinate of the bottom left corner of the rectanglemoveY
- the y coordinate of the bottom left corner of the rectangle
-
drawPdfAStar
Draws a PDF A compliant star in the specified rectangle.- Parameters:
canvas
- the canvas to draw onwidth
- the width of the rectangleheight
- the height of the rectangle
-
drawCross
Draws a cross with the specified width and height.- Parameters:
canvas
- the canvas to draw onwidth
- the width of the rectangleheight
- the height of the rectangleborderWidth
- the width of the border
-
drawCircle
Draws a circle with the specified radius.- Parameters:
canvas
- the canvas to draw oncenterX
- the x coordinate of the center of the circlecenterY
- the y coordinate of the center of the circleradius
- the radius of the circle
-