Example usage for Java com.itextpdf.text.pdf PdfTemplate fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addImage(final Image image) Adds an Image to the page. |
void | beginText() Starts the writing of text. |
void | clip() 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. |
void | closePath() Closes the current subpath by appending a straight line segment from the current point to the starting point of the subpath. |
void | closePathStroke() Closes the path and strokes it. |
java.awt.Graphics2D | createGraphics(final float width, final float height, final FontMapper fontMapper) Gets a Graphics2D to write on. |
java.awt.Graphics2D | createGraphics(final float width, final float height) Gets a Graphics2D to write on. |
java.awt.Graphics2D | createGraphicsShapes(final float width, final float height) Gets a Graphics2D to write on. |
void | endText() Ends the writing of text and makes the current font invalid. |
void | fill() Fills the path, using the non-zero winding number rule to determine the region to fill. |
void | fillStroke() Fills the path using the non-zero winding number rule to determine the region to fill and strokes it. |
void | lineTo(final float x, final float y) Appends a straight line segment from the current point (x, y). |
void | moveTo(final float x, final float y) Move the current point (x, y), omitting any connecting line segment. |
void | newPath() Ends the path without filling or stroking it. |
void | rectangle(final float x, final float y, final float w, final float h) Adds a rectangle to the current path. |
void | restoreState() Restores the graphic state. |
void | roundRectangle(float x, float y, float w, float h, float r) Adds a round rectangle to the current path. |
void | sanityCheck() Checks for any dangling state: Mismatched save/restore state, begin/end text, begin/end layer, or begin/end marked content sequence. |
void | saveState() Saves the graphic state. |
void | setBoundingBox(Rectangle bBox) |
void | setColorFill(final BaseColor color) Sets the fill color. |
void | setColorStroke(final BaseColor color) Sets the stroke color. |
void | setFontAndSize(final BaseFont bf, final float size) Set the font and the size for the subsequent text writing. |
void | setGState(final PdfGState gstate) Sets the graphic state |
void | setHeight(float height) Sets the bounding height of this template. |
void | setLineWidth(final float w) Changes the line width. |
void | setMatrix(float a, float b, float c, float d, float e, float f) |
void | setRGBColorFill(final int red, final int green, final int blue) Changes the current color for filling paths (device dependent colors!). |
void | setTextMatrix(final float x, final float y) Changes the text matrix. |
void | setWidth(float width) Sets the bounding width of this template. |
void | showText(final String text) Shows the text . |
void | stroke() Strokes the path. |