Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » pdf » [javadoc | source]
com.lowagie.text.pdf
public class: PdfTemplate [javadoc | source]
java.lang.Object
   com.lowagie.text.pdf.PdfContentByte
      com.lowagie.text.pdf.PdfTemplate

Direct Known Subclasses:
    PdfPatternPainter, PdfPSXObject, PdfImportedPage, PdfAppearance

Implements the form XObject.
Field Summary
public static final  int TYPE_TEMPLATE     
public static final  int TYPE_IMPORTED     
public static final  int TYPE_PATTERN     
protected  int type     
protected  PdfIndirectReference thisReference    The indirect reference to this template 
protected  PageResources pageResources    The resources used by this template 
protected  Rectangle bBox    The bounding box of this template 
protected  PdfArray matrix     
protected  PdfTransparencyGroup group     
protected  PdfOCG layer     
Fields inherited from com.lowagie.text.pdf.PdfContentByte:
ALIGN_CENTER,  ALIGN_LEFT,  ALIGN_RIGHT,  LINE_CAP_BUTT,  LINE_CAP_ROUND,  LINE_CAP_PROJECTING_SQUARE,  LINE_JOIN_MITER,  LINE_JOIN_ROUND,  LINE_JOIN_BEVEL,  TEXT_RENDER_MODE_FILL,  TEXT_RENDER_MODE_STROKE,  TEXT_RENDER_MODE_FILL_STROKE,  TEXT_RENDER_MODE_INVISIBLE,  TEXT_RENDER_MODE_FILL_CLIP,  TEXT_RENDER_MODE_STROKE_CLIP,  TEXT_RENDER_MODE_FILL_STROKE_CLIP,  TEXT_RENDER_MODE_CLIP,  content,  writer,  pdf,  state,  stateList,  layerDepth,  separator
Constructor:
 protected PdfTemplate() 
 PdfTemplate(PdfWriter wr) 
    Creates new PdfTemplate
    Parameters:
    wr - the PdfWriter
Method from com.lowagie.text.pdf.PdfTemplate Summary:
beginVariableText,   createTemplate,   createTemplate,   endVariableText,   getBoundingBox,   getDuplicate,   getFormXObject,   getGroup,   getHeight,   getIndirectReference,   getLayer,   getMatrix,   getPageResources,   getResources,   getType,   getWidth,   setBoundingBox,   setGroup,   setHeight,   setLayer,   setMatrix,   setWidth
Methods from com.lowagie.text.pdf.PdfContentByte:
add,   addAnnotation,   addImage,   addImage,   addImage,   addImage,   addOutline,   addPSXObject,   addTemplate,   addTemplate,   addTemplateReference,   arc,   beginLayer,   beginMarkedContentSequence,   beginMarkedContentSequence,   beginMarkedContentSequence,   beginText,   bezierArc,   checkNoPattern,   checkWriter,   circle,   clip,   closePath,   closePathEoFillStroke,   closePathFillStroke,   closePathStroke,   concatCTM,   createAppearance,   createAppearance,   createGraphics,   createGraphics,   createGraphics,   createGraphics,   createGraphicsShapes,   createGraphicsShapes,   createPattern,   createPattern,   createPattern,   createPattern,   createPrinterGraphics,   createPrinterGraphics,   createPrinterGraphics,   createPrinterGraphics,   createPrinterGraphicsShapes,   createPrinterGraphicsShapes,   createTemplate,   createTemplate,   curveFromTo,   curveTo,   curveTo,   drawButton,   drawRadioField,   drawTextField,   ellipse,   endLayer,   endMarkedContentSequence,   endText,   eoClip,   eoFill,   eoFillStroke,   escapeString,   escapeString,   fill,   fillStroke,   getCharacterSpacing,   getDuplicate,   getEffectiveStringWidth,   getHorizontalScaling,   getInternalBuffer,   getKernArray,   getLeading,   getPageResources,   getPdfDocument,   getPdfWriter,   getRootOutline,   getWordSpacing,   getXTLM,   getYTLM,   lineTo,   localDestination,   localGoto,   moveText,   moveTextWithLeading,   moveTo,   newPath,   newlineShowText,   newlineShowText,   newlineText,   outputColorNumbers,   paintShading,   paintShading,   rectangle,   rectangle,   remoteGoto,   remoteGoto,   reset,   resetCMYKColorFill,   resetCMYKColorStroke,   resetGrayFill,   resetGrayStroke,   resetRGBColorFill,   resetRGBColorStroke,   restoreState,   roundRectangle,   saveState,   setAction,   setCMYKColorFill,   setCMYKColorFillF,   setCMYKColorStroke,   setCMYKColorStrokeF,   setCharacterSpacing,   setColorFill,   setColorFill,   setColorStroke,   setColorStroke,   setDefaultColorspace,   setFlatness,   setFontAndSize,   setGState,   setGrayFill,   setGrayStroke,   setHorizontalScaling,   setLeading,   setLineCap,   setLineDash,   setLineDash,   setLineDash,   setLineDash,   setLineJoin,   setLineWidth,   setLiteral,   setLiteral,   setLiteral,   setMiterLimit,   setPatternFill,   setPatternFill,   setPatternFill,   setPatternStroke,   setPatternStroke,   setPatternStroke,   setRGBColorFill,   setRGBColorFillF,   setRGBColorStroke,   setRGBColorStrokeF,   setShadingFill,   setShadingStroke,   setTextMatrix,   setTextMatrix,   setTextRenderingMode,   setTextRise,   setWordSpacing,   showText,   showText,   showTextAligned,   showTextAlignedKerned,   showTextKerned,   size,   stroke,   toPdf,   toString,   transform,   variableRectangle
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.PdfTemplate Detail:
 public  void beginVariableText() 
 public static PdfTemplate createTemplate(PdfWriter writer,
    float width,
    float height) 
    Creates a new template.

    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.

 static PdfTemplate createTemplate(PdfWriter writer,
    float width,
    float height,
    PdfName forcedName) 
 public  void endVariableText() 
 public Rectangle getBoundingBox() 
 public PdfContentByte getDuplicate() 
    Gets a duplicate of this PdfTemplate. All the members are copied by reference but the buffer stays different.
 PdfStream getFormXObject(int compressionLevel) throws IOException 
    Gets the stream representing this template.
 public PdfTransparencyGroup getGroup() 
    Getter for property group.
 public float getHeight() 
    Gets the bounding height of this template.
 public PdfIndirectReference getIndirectReference() 
    Gets the indirect reference to this template.
 public PdfOCG getLayer() 
    Gets the layer this template belongs to.
 PdfArray getMatrix() 
 PageResources getPageResources() 
 PdfObject getResources() 
    Constructs the resources used by this template.
 public int getType() 
 public float getWidth() 
    Gets the bounding width of this template.
 public  void setBoundingBox(Rectangle bBox) 
 public  void setGroup(PdfTransparencyGroup group) 
    Setter for property group.
 public  void setHeight(float height) 
    Sets the bounding height of this template.
 public  void setLayer(PdfOCG layer) 
    Sets the layer this template belongs to.
 public  void setMatrix(float a,
    float b,
    float c,
    float d,
    float e,
    float f) 
 public  void setWidth(float width) 
    Sets the bounding width of this template.