com.lowagie.text.pdf
public class PdfTemplate extends PdfContentByte
Field Summary | |
---|---|
protected Rectangle | bBox The bounding box of this template |
protected PdfTransparencyGroup | group |
protected PdfOCG | layer |
protected PdfArray | matrix |
protected PageResources | pageResources The resources used by this template |
protected PdfIndirectReference | thisReference The indirect reference to this template |
protected int | type |
static int | TYPE_IMPORTED |
static int | TYPE_PATTERN |
static int | TYPE_TEMPLATE |
Constructor Summary | |
---|---|
protected | PdfTemplate()
Creates a PdfTemplate . |
PdfTemplate(PdfWriter wr)
Creates new PdfTemplate
|
Method Summary | |
---|---|
void | beginVariableText() |
static PdfTemplate | createTemplate(PdfWriter writer, float width, float height)
Creates a new template.
|
static PdfTemplate | createTemplate(PdfWriter writer, float width, float height, PdfName forcedName) |
void | endVariableText() |
Rectangle | getBoundingBox() |
PdfContentByte | getDuplicate()
Gets a duplicate of this PdfTemplate . |
PdfStream | getFormXObject(int compressionLevel)
Gets the stream representing this template.
|
PdfTransparencyGroup | getGroup() Getter for property group. |
float | getHeight()
Gets the bounding height of this template.
|
PdfIndirectReference | getIndirectReference()
Gets the indirect reference to this template.
|
PdfOCG | getLayer()
Gets the layer this template belongs to. |
PdfArray | getMatrix() |
PageResources | getPageResources() |
PdfObject | getResources()
Constructs the resources used by this template.
|
int | getType() |
float | getWidth()
Gets the bounding width of this template.
|
void | setBoundingBox(Rectangle bBox) |
void | setGroup(PdfTransparencyGroup group) Setter for property group. |
void | setHeight(float height)
Sets the bounding height of this template.
|
void | setLayer(PdfOCG layer)
Sets the layer this template belongs to. |
void | setMatrix(float a, float b, float c, float d, float e, float f) |
void | setWidth(float width)
Sets the bounding width of this template.
|
PdfTemplate
.Parameters: wr the PdfWriter
Creates a new template that is nothing more than a form XObject. This template can be included in this template or in another template. Templates are only written to the output when the document is closed permitting things like showing text in the first page that is only defined in the last page.
Parameters: writer the PdfWriter to use width the bounding box width height the bounding box height
Returns: the created template
PdfTemplate
. All
the members are copied by reference but the buffer stays different.Returns: a copy of this PdfTemplate
Parameters: compressionLevel the compressionLevel
Returns: the stream representing this template
Since: 2.1.3 (replacing the method without param compressionLevel)
Returns: Value of property group.
Returns: height the bounding height
Returns: the indirect reference to this template
Returns: the layer this template belongs to or null
for no layer defined
Returns: the resources used by this template
Returns: width the bounding width
Parameters: group New value of property group.
Parameters: height the bounding height
Parameters: layer the layer this template belongs to
Parameters: width the bounding width