Java com.lowagie.text.pdf PdfContentByte fields, constructors, methods, implement or subclass

Example usage for Java com.lowagie.text.pdf PdfContentByte fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.lowagie.text.pdf PdfContentByte.

The text is from its open source code.

Subclass

com.lowagie.text.pdf.PdfContentByte has subclasses.
Click this link to see all its subclasses.

Field

intALIGN_CENTER
The alignment is center
intALIGN_LEFT
The alignment is left
intALIGN_RIGHT
The alignment is right
intLINE_CAP_BUTT
A possible line cap value
intLINE_CAP_ROUND
A possible line cap value
intLINE_CAP_PROJECTING_SQUARE
A possible line cap value
intLINE_JOIN_MITER
A possible line join value
intLINE_JOIN_ROUND
A possible line join value
intLINE_JOIN_BEVEL
A possible line join value
intTEXT_RENDER_MODE_FILL
A possible text rendering value
intTEXT_RENDER_MODE_FILL_STROKE
A possible text rendering value
intTEXT_RENDER_MODE_INVISIBLE
A possible text rendering value

Constructor

PdfContentByte(PdfWriter wr)
Constructs a new PdfContentByte-object.

Method

voidadd(PdfContentByte other)
Adds the content of another PdfContent-object to this object.
voidaddImage(Image image)
Adds an Image to the page.
voidaddImage(Image image, float a, float b, float c, float d, float e, float f, boolean inlineImage)
Adds an Image to the page.
voidaddImage(Image image, float a, float b, float c, float d, float e, float f)
Adds an Image to the page.
voidaddOutline(PdfOutline outline, String name)
Adds a named outline to the document.
voidaddTemplate(PdfTemplate template, float x, float y)
Adds a template to this content.
voidaddTemplate(PdfTemplate template, float a, float b, float c, float d, float e, float f)
Adds a template to this content.
voidarc(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.
voidbeginLayer(PdfOCG layer)
Begins a graphic block whose visibility is controlled by the layer.
voidbeginMarkedContentSequence(PdfStructureElement struc)
Begins a marked content sequence.
voidbeginMarkedContentSequence(PdfName tag)
This is just a shorthand to beginMarkedContentSequence(tag, null, false).
voidbeginText()
Starts the writing of text.
voidcircle(float x, float y, float r)
Draws a circle.
voidclip()
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.
voidclosePath()
Closes the current subpath by appending a straight line segment from the current point to the starting point of the subpath.
voidclosePathFillStroke()
Closes the path, fills it using the non-zero winding number rule to determine the region to fill and strokes it.
voidclosePathStroke()
Closes the path and strokes it.
voidconcatCTM(float a, float b, float c, float d, float e, float f)
Concatenate a matrix to the current transformation matrix.
PdfAppearancecreateAppearance(float width, float height)
Creates a new appearance to be used with form fields.
java.awt.Graphics2DcreateGraphics(float width, float height, FontMapper fontMapper)
Gets a Graphics2D to write on.
java.awt.Graphics2DcreateGraphics(float width, float height)
Gets a Graphics2D to write on.
java.awt.Graphics2DcreateGraphicsShapes(float width, float height)
Gets a Graphics2D to write on.
PdfTemplatecreateTemplate(float width, float height)
Creates a new template.
voidcurveTo(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.
voidellipse(float x1, float y1, float x2, float y2)
Draws an ellipse inscribed within the rectangle x1,y1,x2,y2.
voidendLayer()
Ends a layer controlled graphic block.
voidendMarkedContentSequence()
Ends a marked content sequence
voidendText()
Ends the writing of text and makes the current font invalid.
voideoClip()
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.
voideoFill()
Fills the path, using the even-odd rule to determine the region to fill.
voideoFillStroke()
Fills the path, using the even-odd rule to determine the region to fill and strokes it.
voidfill()
Fills the path, using the non-zero winding number rule to determine the region to fill.
voidfillStroke()
Fills the path using the non-zero winding number rule to determine the region to fill and strokes it.
floatgetEffectiveStringWidth(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".
PdfDocumentgetPdfDocument()
Gets the PdfDocument in use by this object.
PdfWritergetPdfWriter()
Gets the PdfWriter in use by this object.
PdfOutlinegetRootOutline()
Gets the root outline.
voidlineTo(float x, float y)
Appends a straight line segment from the current point (x, y).
booleanlocalDestination(String name, PdfDestination destination)
The local destination to where a local goto with the same name will jump.
voidmoveText(float x, float y)
Moves to the start of the next line, offset from the start of the current line.
voidmoveTo(float x, float y)
Move the current point (x, y), omitting any connecting line segment.
voidnewlineShowText(String text)
Moves to the next line and shows text.
voidnewlineText()
Moves to the start of the next line.
voidnewPath()
Ends the path without filling or stroking it.
voidrectangle(float x, float y, float w, float h)
Adds a rectangle to the current path.
voidresetRGBColorFill()
Changes the current color for filling paths to black.
voidresetRGBColorStroke()
Changes the current color for stroking paths to black.
voidrestoreState()
Restores the graphic state.
voidsanityCheck()
Checks for any dangling state: Mismatched save/restore state, begin/end text, begin/end layer, or begin/end marked content sequence.
voidsaveState()
Saves the graphic state.
voidsetCMYKColorFillF(float cyan, float magenta, float yellow, float black)
Changes the current color for filling paths (device dependent colors!).
voidsetColorFill(Color color)
Sets the fill color.
voidsetColorStroke(Color color)
Sets the stroke color.
voidsetDefaultColorspace(PdfName name, PdfObject obj)
Sets the default colorspace.
voidsetFontAndSize(BaseFont bf, float size)
Set the font and the size for the subsequent text writing.
voidsetGrayStroke(float gray)
Changes the currentgray tint for stroking paths (device dependent colors!).
voidsetGState(PdfGState gstate)
Sets the graphic state
voidsetLineCap(int style)
Changes the Line cap style.
voidsetLineDash(float unitsOn, float phase)
Changes the value of the line dash pattern.
voidsetLineDash(float[] array, float phase)
Changes the value of the line dash pattern.
voidsetLineDash(float phase)
Changes the value of the line dash pattern.
voidsetLineDash(float unitsOn, float unitsOff, float phase)
Changes the value of the line dash pattern.
voidsetLineJoin(int style)
Changes the Line join style.
voidsetLineWidth(float w)
Changes the line width.
voidsetLiteral(String s)
Outputs a String directly to the content.
voidsetLiteral(char c)
Outputs a char directly to the content.
voidsetLiteral(float n)
Outputs a float directly to the content.
voidsetMiterLimit(float miterLimit)
Changes the Miter limit.
voidsetRGBColorFill(int red, int green, int blue)
Changes the current color for filling paths (device dependent colors!).
voidsetRGBColorStroke(int red, int green, int blue)
Changes the current color for stroking paths (device dependent colors!).
voidsetRGBColorStrokeF(float red, float green, float blue)
Changes the current color for stroking paths (device dependent colors!).
voidsetTextMatrix(float x, float y)
Changes the text matrix.
voidsetTextMatrix(float a, float b, float c, float d, float x, float y)
Changes the text matrix.
voidsetTextRenderingMode(int rendering)
Sets the text rendering parameter.
voidshowText(String text)
Shows the text.
voidshowText(PdfTextArray text)
Show an array of text.
voidshowTextAligned(int alignment, String text, float x, float y, float rotation)
Shows text right, left or center aligned with rotation.
voidstroke()
Strokes the path.
voidtransform(AffineTransform af)
Concatenates a transformation to the current transformation matrix.