Example usage for Java com.lowagie.text.pdf PdfContentByte fields, constructors, methods, implement or subclass
The text is from its open source code.
int | ALIGN_CENTER The alignment is center |
int | ALIGN_LEFT The alignment is left |
int | ALIGN_RIGHT The alignment is right |
int | LINE_CAP_BUTT A possible line cap value |
int | LINE_CAP_ROUND A possible line cap value |
int | LINE_CAP_PROJECTING_SQUARE A possible line cap value |
int | LINE_JOIN_MITER A possible line join value |
int | LINE_JOIN_ROUND A possible line join value |
int | LINE_JOIN_BEVEL A possible line join value |
int | TEXT_RENDER_MODE_FILL A possible text rendering value |
int | TEXT_RENDER_MODE_FILL_STROKE A possible text rendering value |
int | TEXT_RENDER_MODE_INVISIBLE A possible text rendering value |
PdfContentByte(PdfWriter wr) Constructs a new PdfContentByte -object. |
void | add(PdfContentByte other) Adds the content of another PdfContent -object to this object. |
void | addImage(Image image) Adds an Image to the page. |
void | addImage(Image image, float a, float b, float c, float d, float e, float f, boolean inlineImage) Adds an Image to the page. |
void | addImage(Image image, float a, float b, float c, float d, float e, float f) Adds an Image to the page. |
void | addOutline(PdfOutline outline, String name) Adds a named outline to the document. |
void | addTemplate(PdfTemplate template, float x, float y) Adds a template to this content. |
void | addTemplate(PdfTemplate template, float a, float b, float c, float d, float e, float f) Adds a template to this content. |
void | arc(float x1, float y1, float x2, float y2, float startAng, float extent) Draws a partial ellipse inscribed within the rectangle x1,y1,x2,y2, starting at startAng degrees and covering extent degrees. |
void | beginLayer(PdfOCG layer) Begins a graphic block whose visibility is controlled by the layer . |
void | beginMarkedContentSequence(PdfStructureElement struc) Begins a marked content sequence. |
void | beginMarkedContentSequence(PdfName tag) This is just a shorthand to beginMarkedContentSequence(tag, null, false) . |
void | beginText() Starts the writing of text. |
void | circle(float x, float y, float r) Draws a circle. |
void | clip() Modify the current clipping path by intersecting it with the current path, using the nonzero winding number rule to determine which regions lie inside the clipping path. |
void | closePath() Closes the current subpath by appending a straight line segment from the current point to the starting point of the subpath. |
void | closePathFillStroke() Closes the path, fills it using the non-zero winding number rule to determine the region to fill and strokes it. |
void | closePathStroke() Closes the path and strokes it. |
void | concatCTM(float a, float b, float c, float d, float e, float f) Concatenate a matrix to the current transformation matrix. |
PdfAppearance | createAppearance(float width, float height) Creates a new appearance to be used with form fields. |
java.awt.Graphics2D | createGraphics(float width, float height, FontMapper fontMapper) Gets a Graphics2D to write on. |
java.awt.Graphics2D | createGraphics(float width, float height) Gets a Graphics2D to write on. |
java.awt.Graphics2D | createGraphicsShapes(float width, float height) Gets a Graphics2D to write on. |
PdfTemplate | createTemplate(float width, float height) Creates a new template. |
void | curveTo(float x1, float y1, float x2, float y2, float x3, float y3) Appends a Bêzier curve to the path, starting from the current point. |
void | ellipse(float x1, float y1, float x2, float y2) Draws an ellipse inscribed within the rectangle x1,y1,x2,y2. |
void | endLayer() Ends a layer controlled graphic block. |
void | endMarkedContentSequence() Ends a marked content sequence |
void | endText() Ends the writing of text and makes the current font invalid. |
void | eoClip() Modify the current clipping path by intersecting it with the current path, using the even-odd rule to determine which regions lie inside the clipping path. |
void | eoFill() Fills the path, using the even-odd rule to determine the region to fill. |
void | eoFillStroke() Fills the path, using the even-odd rule to determine the region to fill and strokes it. |
void | fill() Fills the path, using the non-zero winding number rule to determine the region to fill. |
void | fillStroke() Fills the path using the non-zero winding number rule to determine the region to fill and strokes it. |
float | getEffectiveStringWidth(String text, boolean kerned) Computes the width of the given string taking in account the current values of "Character spacing", "Word Spacing" and "Horizontal Scaling". |
PdfDocument | getPdfDocument() Gets the PdfDocument in use by this object. |
PdfWriter | getPdfWriter() Gets the PdfWriter in use by this object. |
PdfOutline | getRootOutline() Gets the root outline. |
void | lineTo(float x, float y) Appends a straight line segment from the current point (x, y). |
boolean | localDestination(String name, PdfDestination destination) The local destination to where a local goto with the same name will jump. |
void | moveText(float x, float y) Moves to the start of the next line, offset from the start of the current line. |
void | moveTo(float x, float y) Move the current point (x, y), omitting any connecting line segment. |
void | newlineShowText(String text) Moves to the next line and shows text . |
void | newlineText() Moves to the start of the next line. |
void | newPath() Ends the path without filling or stroking it. |
void | rectangle(float x, float y, float w, float h) Adds a rectangle to the current path. |
void | resetRGBColorFill() Changes the current color for filling paths to black. |
void | resetRGBColorStroke() Changes the current color for stroking paths to black. |
void | restoreState() Restores the graphic state. |
void | sanityCheck() Checks for any dangling state: Mismatched save/restore state, begin/end text, begin/end layer, or begin/end marked content sequence. |
void | saveState() Saves the graphic state. |
void | setCMYKColorFillF(float cyan, float magenta, float yellow, float black) Changes the current color for filling paths (device dependent colors!). |
void | setColorFill(Color color) Sets the fill color. |
void | setColorStroke(Color color) Sets the stroke color. |
void | setDefaultColorspace(PdfName name, PdfObject obj) Sets the default colorspace. |
void | setFontAndSize(BaseFont bf, float size) Set the font and the size for the subsequent text writing. |
void | setGrayStroke(float gray) Changes the currentgray tint for stroking paths (device dependent colors!). |
void | setGState(PdfGState gstate) Sets the graphic state |
void | setLineCap(int style) Changes the Line cap style. |
void | setLineDash(float unitsOn, float phase) Changes the value of the line dash pattern. |
void | setLineDash(float[] array, float phase) Changes the value of the line dash pattern. |
void | setLineDash(float phase) Changes the value of the line dash pattern. |
void | setLineDash(float unitsOn, float unitsOff, float phase) Changes the value of the line dash pattern. |
void | setLineJoin(int style) Changes the Line join style. |
void | setLineWidth(float w) Changes the line width. |
void | setLiteral(String s) Outputs a String directly to the content. |
void | setLiteral(char c) Outputs a char directly to the content. |
void | setLiteral(float n) Outputs a float directly to the content. |
void | setMiterLimit(float miterLimit) Changes the Miter limit. |
void | setRGBColorFill(int red, int green, int blue) Changes the current color for filling paths (device dependent colors!). |
void | setRGBColorStroke(int red, int green, int blue) Changes the current color for stroking paths (device dependent colors!). |
void | setRGBColorStrokeF(float red, float green, float blue) Changes the current color for stroking paths (device dependent colors!). |
void | setTextMatrix(float x, float y) Changes the text matrix. |
void | setTextMatrix(float a, float b, float c, float d, float x, float y) Changes the text matrix. |
void | setTextRenderingMode(int rendering) Sets the text rendering parameter. |
void | showText(String text) Shows the text . |
void | showText(PdfTextArray text) Show an array of text. |
void | showTextAligned(int alignment, String text, float x, float y, float rotation) Shows text right, left or center aligned with rotation. |
void | stroke() Strokes the path. |
void | transform(AffineTransform af) Concatenates a transformation to the current transformation matrix. |