Java com.itextpdf.text.pdf PdfTemplate fields, constructors, methods, implement or subclass

Example usage for Java com.itextpdf.text.pdf PdfTemplate fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.itextpdf.text.pdf PdfTemplate.

The text is from its open source code.

Method

voidaddImage(final Image image)
Adds an Image to the page.
voidbeginText()
Starts the writing of text.
voidclip()
Modify the current clipping path by intersecting it with the current path, using the nonzero winding number rule to determine which regions lie inside the clipping path.
voidclosePath()
Closes the current subpath by appending a straight line segment from the current point to the starting point of the subpath.
voidclosePathStroke()
Closes the path and strokes it.
java.awt.Graphics2DcreateGraphics(final float width, final float height, final FontMapper fontMapper)
Gets a Graphics2D to write on.
java.awt.Graphics2DcreateGraphics(final float width, final float height)
Gets a Graphics2D to write on.
java.awt.Graphics2DcreateGraphicsShapes(final float width, final float height)
Gets a Graphics2D to write on.
voidendText()
Ends the writing of text and makes the current font invalid.
voidfill()
Fills the path, using the non-zero winding number rule to determine the region to fill.
voidfillStroke()
Fills the path using the non-zero winding number rule to determine the region to fill and strokes it.
voidlineTo(final float x, final float y)
Appends a straight line segment from the current point (x, y).
voidmoveTo(final float x, final float y)
Move the current point (x, y), omitting any connecting line segment.
voidnewPath()
Ends the path without filling or stroking it.
voidrectangle(final float x, final float y, final float w, final float h)
Adds a rectangle to the current path.
voidrestoreState()
Restores the graphic state.
voidroundRectangle(float x, float y, float w, float h, float r)
Adds a round rectangle to the current path.
voidsanityCheck()
Checks for any dangling state: Mismatched save/restore state, begin/end text, begin/end layer, or begin/end marked content sequence.
voidsaveState()
Saves the graphic state.
voidsetBoundingBox(Rectangle bBox)
voidsetColorFill(final BaseColor color)
Sets the fill color.
voidsetColorStroke(final BaseColor color)
Sets the stroke color.
voidsetFontAndSize(final BaseFont bf, final float size)
Set the font and the size for the subsequent text writing.
voidsetGState(final PdfGState gstate)
Sets the graphic state
voidsetHeight(float height)
Sets the bounding height of this template.
voidsetLineWidth(final float w)
Changes the line width.
voidsetMatrix(float a, float b, float c, float d, float e, float f)
voidsetRGBColorFill(final int red, final int green, final int blue)
Changes the current color for filling paths (device dependent colors!).
voidsetTextMatrix(final float x, final float y)
Changes the text matrix.
voidsetWidth(float width)
Sets the bounding width of this template.
voidshowText(final String text)
Shows the text.
voidstroke()
Strokes the path.