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

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

Introduction

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

The text is from its open source code.

Method

voidaddImage(Image image, float a, float b, float c, float d, float e, float f)
Adds an Image to the page.
voidaddImage(Image image)
Adds an Image to the page.
voidbeginLayer(PdfOCG layer)
Begins a graphic block whose visibility is controlled by the layer.
voidbeginText()
Starts the writing of text.
java.awt.Graphics2DcreateGraphics(float width, float height)
Gets a Graphics2D to write on.
java.awt.Graphics2DcreateGraphics(float width, float height, FontMapper fontMapper)
Gets a Graphics2D to write on.
java.awt.Graphics2DcreateGraphics(float width, float height, FontMapper fontMapper, boolean convertImagesToJPEG, float quality)
Gets a Graphics2D to write on.
java.awt.Graphics2DcreateGraphicsShapes(float width, float height)
Gets a Graphics2D to write on.
PdfTemplatecreateTemplate(PdfWriter writer, float width, float height)
Creates a new template.
voidellipse(float x1, float y1, float x2, float y2)
Draws an ellipse inscribed within the rectangle x1,y1,x2,y2.
voidendLayer()
Ends a layer controlled graphic block.
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.
floatgetHeight()
Gets the bounding height of this template.
PdfIndirectReferencegetIndirectReference()
Gets the indirect reference to this template.
floatgetWidth()
Gets the bounding width of this template.
voidlineTo(float x, float y)
Appends a straight line segment from the current point (x, y).
voidmoveText(float x, float y)
Moves to the start of the next line, offset from the start of the current line.
voidmoveTo(float x, float y)
Move the current point (x, y), omitting any connecting line segment.
voidnewPath()
Ends the path without filling or stroking it.
voidrectangle(float x, float y, float w, float h)
Adds a rectangle to the current path.
voidrectangle(Rectangle rectangle)
Adds a border (complete or partially) 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.
voidsetBoundingBox(Rectangle bBox)
voidsetCMYKColorFill(int cyan, int magenta, int yellow, int black)
Changes the current color for filling paths (device dependent colors!).
voidsetCMYKColorStroke(int cyan, int magenta, int yellow, int black)
Changes the current color for stroking paths (device dependent colors!).
voidsetColorFill(Color color)
Sets the fill color.
voidsetColorStroke(Color color)
Sets the stroke color.
voidsetFontAndSize(BaseFont bf, float size)
Set the font and the size for the subsequent text writing.
voidsetGrayFill(float gray)
Changes the currentgray tint for filling paths (device dependent colors!).
voidsetGrayStroke(float gray)
Changes the currentgray tint for stroking paths (device dependent colors!).
voidsetGroup(PdfTransparencyGroup group)
Setter for property group.
voidsetHeight(float height)
Sets the bounding height of this template.
voidsetLineWidth(float w)
Changes the line width.
voidsetRGBColorFill(int red, int green, int blue)
Changes the current color for filling paths (device dependent colors!).
voidsetRGBColorStroke(int red, int green, int blue)
Changes the current color for stroking paths (device dependent colors!).
voidsetTextMatrix(float x, float y)
Changes the text matrix.
voidsetWidth(float width)
Sets the bounding width of this template.
voidshowText(String text)
Shows the text.
voidshowTextAligned(int alignment, String text, float x, float y, float rotation)
Shows text right, left or center aligned with rotation.
voidstroke()
Strokes the path.