|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.lowagie.text.pdf.PdfContentByte
com.lowagie.text.pdf.PdfTemplate
Implements the form XObject.
| Field Summary | |
static int |
TYPE_IMPORTED
|
static int |
TYPE_PATTERN
|
static int |
TYPE_TEMPLATE
|
| Method Summary | |
void |
addAttribute(PdfName key,
PdfObject value)
Add attribute to the xobject stream |
void |
beginVariableText()
|
static PdfTemplate |
createTemplate(PdfWriter writer,
float width,
float height)
Creates a new template. |
void |
endVariableText()
|
Rectangle |
getBoundingBox()
|
Boolean |
getCompress()
De/activate compression for this template individually (overrideing Document.compress) |
PdfContentByte |
getDuplicate()
Gets a duplicate of this PdfTemplate. |
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. |
int |
getType()
|
float |
getWidth()
Gets the bounding width of this template. |
void |
setBoundingBox(Rectangle bBox)
|
void |
setCompress(Boolean compress)
De/activate compression for this template individually (overrideing Document.compress) |
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int TYPE_TEMPLATE
public static final int TYPE_IMPORTED
public static final int TYPE_PATTERN
| Method Detail |
public Boolean getCompress()
public void addAttribute(PdfName key,
PdfObject value)
key - value - public void setCompress(Boolean compress)
compress -
public static PdfTemplate createTemplate(PdfWriter writer,
float width,
float height)
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.
writer - the PdfWriter to usewidth - the bounding box widthheight - the bounding box height
public void setWidth(float width)
width - the bounding widthpublic void setHeight(float height)
height - the bounding heightpublic float getWidth()
public float getHeight()
public Rectangle getBoundingBox()
public void setBoundingBox(Rectangle bBox)
public void setLayer(PdfOCG layer)
layer - the layer this template belongs topublic PdfOCG getLayer()
null for no layer defined
public void setMatrix(float a,
float b,
float c,
float d,
float e,
float f)
public PdfIndirectReference getIndirectReference()
public void beginVariableText()
public void endVariableText()
public PdfContentByte getDuplicate()
PdfTemplate. All
the members are copied by reference but the buffer stays different.
getDuplicate in class PdfContentBytePdfTemplatepublic int getType()
public PdfTransparencyGroup getGroup()
public void setGroup(PdfTransparencyGroup group)
group - New value of property group.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||