Example usage for Java com.lowagie.text.pdf PdfTemplate fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addImage(Image image, float a, float b, float c, float d, float e, float f) Adds an Image to the page. |
void | addImage(Image image) Adds an Image to the page. |
void | beginLayer(PdfOCG layer) Begins a graphic block whose visibility is controlled by the layer . |
void | beginText() Starts the writing of text. |
java.awt.Graphics2D | createGraphics(float width, float height) Gets a Graphics2D to write on. |
java.awt.Graphics2D | createGraphics(float width, float height, FontMapper fontMapper) Gets a Graphics2D to write on. |
java.awt.Graphics2D | createGraphics(float width, float height, FontMapper fontMapper, boolean convertImagesToJPEG, float quality) Gets a Graphics2D to write on. |
java.awt.Graphics2D | createGraphicsShapes(float width, float height) Gets a Graphics2D to write on. |
PdfTemplate | createTemplate(PdfWriter writer, float width, float height) Creates a new template. |
void | ellipse(float x1, float y1, float x2, float y2) Draws an ellipse inscribed within the rectangle x1,y1,x2,y2. |
void | endLayer() Ends a layer controlled graphic block. |
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. |
float | getHeight() Gets the bounding height of this template. |
PdfIndirectReference | getIndirectReference() Gets the indirect reference to this template. |
float | getWidth() Gets the bounding width of this template. |
void | lineTo(float x, float y) Appends a straight line segment from the current point (x, y). |
void | moveText(float x, float y) Moves to the start of the next line, offset from the start of the current line. |
void | moveTo(float x, 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(float x, float y, float w, float h) Adds a rectangle to the current path. |
void | rectangle(Rectangle rectangle) Adds a border (complete or partially) 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 | setBoundingBox(Rectangle bBox) |
void | setCMYKColorFill(int cyan, int magenta, int yellow, int black) Changes the current color for filling paths (device dependent colors!). |
void | setCMYKColorStroke(int cyan, int magenta, int yellow, int black) Changes the current color for stroking paths (device dependent colors!). |
void | setColorFill(Color color) Sets the fill color. |
void | setColorStroke(Color color) Sets the stroke color. |
void | setFontAndSize(BaseFont bf, float size) Set the font and the size for the subsequent text writing. |
void | setGrayFill(float gray) Changes the currentgray tint for filling paths (device dependent colors!). |
void | setGrayStroke(float gray) Changes the currentgray tint for stroking paths (device dependent colors!). |
void | setGroup(PdfTransparencyGroup group) Setter for property group. |
void | setHeight(float height) Sets the bounding height of this template. |
void | setLineWidth(float w) Changes the line width. |
void | setRGBColorFill(int red, int green, int blue) Changes the current color for filling paths (device dependent colors!). |
void | setRGBColorStroke(int red, int green, int blue) Changes the current color for stroking paths (device dependent colors!). |
void | setTextMatrix(float x, float y) Changes the text matrix. |
void | setWidth(float width) Sets the bounding width of this template. |
void | showText(String text) Shows the text . |
void | showTextAligned(int alignment, String text, float x, float y, float rotation) Shows text right, left or center aligned with rotation. |
void | stroke() Strokes the path. |