Package org.openpdf.text.pdf
Class PdfTemplate
java.lang.Object
org.openpdf.text.pdf.PdfContentByte
org.openpdf.text.pdf.PdfTemplate
Implements the form XObject.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RectangleThe bounding box of this templateprotected PdfArrayprotected org.openpdf.text.pdf.PageResourcesThe resources used by this templateprotected PdfIndirectReferenceThe indirect reference to this templateprotected intstatic final intstatic final intFields inherited from class org.openpdf.text.pdf.PdfContentByte
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, content, LINE_CAP_BUTT, LINE_JOIN_MITER, pdf, separator, state, stateList, writer -
Method Summary
Modifier and TypeMethodDescriptionfloatGets the bounding height of this template.Gets the indirect reference to this template.intgetType()Gets a duplicate of thisPdfTemplate.floatgetWidth()Gets the bounding width of this template.voidsetBoundingBox(Rectangle bBox) voidsetHeight(float height) Sets the bounding height of this template.voidsetWidth(float width) Sets the bounding width of this template.Methods inherited from class org.openpdf.text.pdf.PdfContentByte
addImage, addImage, addImage, addTemplate, addTemplate, addTemplate, arc, beginText, bezierArc, checkWriter, closePath, concatCTM, createTemplate, curveTo, ellipse, endText, eoFill, eoFillStroke, fill, fillStroke, getInternalBuffer, getPdfDocument, getPdfWriter, lineTo, moveTo, newPath, rectangle, rectangle, reset, reset, resetGrayFill, resetGrayStroke, resetRGBColorFill, resetRGBColorStroke, restoreState, roundRectangle, sanityCheck, saveState, setColorFill, setColorStroke, setFontAndSize, setGrayFill, setGrayStroke, setGState, setLineCap, setLineDash, setLineDash, setLineJoin, setLineWidth, setRGBColorFill, setRGBColorStroke, setTextMatrix, setTextMatrix, showText, showTextBasic, stroke, toPdf, toString, variableRectangle
-
Field Details
-
TYPE_TEMPLATE
public static final int TYPE_TEMPLATE- See Also:
-
TYPE_PATTERN
public static final int TYPE_PATTERN- See Also:
-
type
protected int type -
thisReference
The indirect reference to this template -
pageResources
protected org.openpdf.text.pdf.PageResources pageResourcesThe resources used by this template -
bBox
The bounding box of this template -
matrix
-
-
Method Details
-
getWidth
public float getWidth()Gets the bounding width of this template.- Returns:
- width the bounding width
-
setWidth
public void setWidth(float width) Sets the bounding width of this template.- Parameters:
width- the bounding width
-
getHeight
public float getHeight()Gets the bounding height of this template.- Returns:
- height the bounding height
-
setHeight
public void setHeight(float height) Sets the bounding height of this template.- Parameters:
height- the bounding height
-
getBoundingBox
-
setBoundingBox
-
getIndirectReference
Gets the indirect reference to this template.- Returns:
- the indirect reference to this template
-
getType
public int getType()Gets a duplicate of thisPdfTemplate. All the members are copied by reference but the buffer stays different.- Returns:
- a copy of this
PdfTemplate
-