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

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

Introduction

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

The text is from its open source code.

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_STROKE
A possible text rendering value
intTEXT_RENDER_MODE_FILL_STROKE
A possible text rendering value
intTEXT_RENDER_MODE_INVISIBLE
A possible text rendering value
intTEXT_RENDER_MODE_FILL_CLIP
A possible text rendering value
intTEXT_RENDER_MODE_STROKE_CLIP
A possible text rendering value
intTEXT_RENDER_MODE_FILL_STROKE_CLIP
A possible text rendering value
intTEXT_RENDER_MODE_CLIP
A possible text rendering value

Constructor

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

Method

PdfNameaddFormXObj(final PdfStream formXObj, final PdfName name, final float a, final float b, final float c, final float d, final float e, final float f)
Adds a form XObject to this content.
PdfNameaddFormXObj(final PdfStream formXObj, final PdfName name, final double a, final double b, final double c, final double d, final double e, final double f)
Adds a form XObject to this content.
voidaddImage(final Image image)
Adds an Image to the page.
voidaddImage(final Image image, final float a, final float b, final float c, final float d, final float e, final float f)
Adds an Image to the page.
voidaddImage(final Image image, final double a, final double b, final double c, final double d, final double e, final double f)
Adds an Image to the page.
voidaddImage(final Image image, final float a, final float b, final float c, final float d, final float e, final float f, final boolean inlineImage)
Adds an Image to the page.
voidaddImage(final Image image, final double a, final double b, final double c, final double d, final double e, final double f, final boolean inlineImage)
Adds an Image to the page.
voidaddImage(final Image image, final boolean inlineImage)
Adds an Image to the page.
voidaddImage(final Image image, final AffineTransform transform)
adds an image with the given matrix.
voidaddImage(final Image image, final java.awt.geom.AffineTransform transform)
adds an image with the given matrix.
voidaddTemplate(final PdfTemplate template, final AffineTransform transform, boolean tagContent)
adds a template with the given matrix.
voidaddTemplate(final PdfTemplate template, final float x, final float y)
Adds a template to this content.
voidaddTemplate(final PdfTemplate template, final double x, final double y)
Adds a template to this content.
voidaddTemplate(final PdfTemplate template, final float a, final float b, final float c, final float d, final float e, final float f)
Adds a template to this content.
voidaddTemplate(final PdfTemplate template, final double a, final double b, final double c, final double d, final double e, final double f)
Adds a template to this content.
voidbeginLayer(final PdfOCG layer)
Begins a graphic block whose visibility is controlled by the layer.
voidbeginText()
Starts the writing of text.
ArrayListbezierArc(float x1, float y1, float x2, float y2, final float startAng, final float extent)
Generates an array of bezier curves to draw an arc.
ArrayListbezierArc(double x1, double y1, double x2, double y2, final double startAng, final double extent)
Generates an array of bezier curves to draw an arc.
voidcircle(final float x, final float y, final float r)
Draws a circle.
voidcircle(final double x, final double y, final double 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(final float a, final float b, final float c, final float d, final float e, final float f)
Concatenate a matrix to the current transformation matrix.
voidconcatCTM(final double a, final double b, final double c, final double d, final double e, final double f)
Concatenate a matrix to the current transformation matrix.
PdfAppearancecreateAppearance(final float width, final float height)
Creates a new appearance to be used with form fields.
java.awt.Graphics2DcreateGraphics(final float width, final float height)
Gets a Graphics2D to write on.
java.awt.Graphics2DcreateGraphicsShapes(final float width, final float height)
Gets a Graphics2D to write on.
PdfTemplatecreateTemplate(final float width, final float height)
Creates a new template.
voidcurveTo(final float x2, final float y2, final float x3, final float y3)
Appends a Bêzier curve to the path, starting from the current point.
voidcurveTo(final double x2, final double y2, final double x3, final double y3)
Appends a Bêzier curve to the path, starting from the current point.
voidcurveTo(final float x1, final float y1, final float x2, final float y2, final float x3, final float y3)
Appends a Bêzier curve to the path, starting from the current point.
voidcurveTo(final double x1, final double y1, final double x2, final double y2, final double x3, final double y3)
Appends a Bêzier curve to the path, starting from the current point.
voidellipse(final float x1, final float y1, final float x2, final float y2)
Draws an ellipse inscribed within the rectangle x1,y1,x2,y2.
voidellipse(final double x1, final double y1, final double x2, final double y2)
Draws an ellipse inscribed within the rectangle x1,y1,x2,y2.
voidendLayer()
Ends a layer controlled graphic block.
voidendText()
Ends the writing of text and makes the current font invalid.
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(final String text, final boolean kerned)
Computes the width of the given string taking in account the current values of "Character spacing", "Word Spacing" and "Horizontal Scaling".
ByteBuffergetInternalBuffer()
Gets the internal buffer.
PdfTextArraygetKernArray(final String text, final BaseFont font)
Constructs a kern array for a text in a certain font
PdfDocumentgetPdfDocument()
Gets the PdfDocument in use by this object.
PdfWritergetPdfWriter()
Gets the PdfWriter in use by this object.
voidlineTo(final float x, final float y)
Appends a straight line segment from the current point (x, y).
voidlineTo(final double x, final double y)
Appends a straight line segment from the current point (x, y).
voidmoveText(final float x, final float y)
Moves to the start of the next line, offset from the start of the current line.
voidmoveTextWithLeading(final float x, final float y)
Moves to the start of the next line, offset from the start of the current line.
voidmoveTo(final float x, final float y)
Move the current point (x, y), omitting any connecting line segment.
voidmoveTo(final double x, final double y)
Move the current point (x, y), omitting any connecting line segment.
voidnewlineShowText(final 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(final float x, final float y, final float w, final float h)
Adds a rectangle to the current path.
voidrectangle(final double x, final double y, final double w, final double h)
Adds a rectangle to the current path.
voidrectangle(final Rectangle rectangle)
Adds a border (complete or partially) to the current path..
voidresetRGBColorFill()
Changes the current color for filling paths to black.
voidrestoreState()
Restores the graphic state.
voidroundRectangle(float x, float y, float w, float h, float r)
Adds a round rectangle to the current path.
voidroundRectangle(double x, double y, double w, double h, double r)
Adds a round rectangle to the current path.
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.
voidsetAction(final PdfAction action, final float llx, final float lly, final float urx, final float ury)
Implements an action in an area.
voidsetCharacterSpacing(final float charSpace)
Sets the character spacing parameter.
voidsetCMYKColorFillF(final float cyan, final float magenta, final float yellow, final float black)
Changes the current color for filling paths (device dependent colors!).
voidsetCMYKColorStroke(final int cyan, final int magenta, final int yellow, final int black)
Changes the current color for stroking paths (device dependent colors!).
voidsetColorFill(final BaseColor color)
Sets the fill color.
voidsetColorStroke(final BaseColor color)
Sets the stroke color.
voidsetFontAndSize(final BaseFont bf, final float size)
Set the font and the size for the subsequent text writing.
voidsetGrayFill(final float gray)
Changes the currentgray tint for filling paths (device dependent colors!).
voidsetGrayStroke(final float gray)
Changes the currentgray tint for stroking paths (device dependent colors!).
voidsetGState(final PdfGState gstate)
Sets the graphic state
voidsetHorizontalScaling(final float scale)
Sets the horizontal scaling parameter.
voidsetLeading(final float leading)
Sets the text leading parameter.
voidsetLineCap(final int style)
Changes the Line cap style.
voidsetLineDash(final float unitsOn, final float phase)
Changes the value of the line dash pattern.
voidsetLineDash(final double unitsOn, final double phase)
Changes the value of the line dash pattern.
voidsetLineDash(final float[] array, final float phase)
Changes the value of the line dash pattern.
voidsetLineDash(final double[] array, final double phase)
Changes the value of the line dash pattern.
voidsetLineDash(final float unitsOn, final float unitsOff, final float phase)
Changes the value of the line dash pattern.
voidsetLineDash(final double unitsOn, final double unitsOff, final double phase)
Changes the value of the line dash pattern.
voidsetLineJoin(final int style)
Changes the Line join style.
voidsetLineWidth(final float w)
Changes the line width.
voidsetLineWidth(final double w)
Changes the line width.
voidsetMiterLimit(final float miterLimit)
Changes the Miter limit.
voidsetMiterLimit(final double miterLimit)
Changes the Miter limit.
voidsetRGBColorFill(final int red, final int green, final int blue)
Changes the current color for filling paths (device dependent colors!).
voidsetRGBColorFillF(final float red, final float green, final float blue)
Changes the current color for filling paths (device dependent colors!).
voidsetRGBColorStroke(final int red, final int green, final int blue)
Changes the current color for stroking paths (device dependent colors!).
voidsetRGBColorStrokeF(final float red, final float green, final float blue)
Changes the current color for stroking paths (device dependent colors!).
voidsetTextMatrix(final float x, final float y)
Changes the text matrix.
voidsetTextMatrix(final float a, final float b, final float c, final float d, final float x, final float y)
Changes the text matrix.
voidsetTextRenderingMode(final int rendering)
Sets the text rendering parameter.
voidsetTextRise(final float rise)
Sets the text rise parameter.
voidsetTextRise(final double rise)
Sets the text rise parameter.
voidsetWordSpacing(final float wordSpace)
Sets the word spacing parameter.
voidshowText(final String text)
Shows the text.
voidshowText(final PdfTextArray text)
Show an array of text.
voidshowTextAligned(final int alignment, final String text, final float x, final float y, final float rotation)
Shows text right, left or center aligned with rotation.
voidshowTextAlignedKerned(final int alignment, final String text, final float x, final float y, final float rotation)
Shows text kerned right, left or center aligned with rotation.
voidstroke()
Strokes the path.
voidtransform(final AffineTransform af)
Concatenates a transformation to the current transformation matrix.
voidtransform(final java.awt.geom.AffineTransform af)
Concatenates a transformation to the current transformation matrix.