Uses of Class
com.itextpdf.kernel.pdf.canvas.PdfCanvas
-
-
Uses of PdfCanvas in com.itextpdf.barcodes
Methods in com.itextpdf.barcodes with parameters of type PdfCanvas Modifier and Type Method Description Rectangle
Barcode128. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.abstract Rectangle
Barcode1D. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.abstract Rectangle
Barcode2D. placeBarcode(PdfCanvas canvas, Color foreground)
Places the barcode in aPdfCanvas
.Rectangle
Barcode39. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeCodabar. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeDataMatrix. placeBarcode(PdfCanvas canvas, Color foreground)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeDataMatrix. placeBarcode(PdfCanvas canvas, Color foreground, float moduleSide)
Places the barcode in a PdfCanvasRectangle
BarcodeEAN. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeEANSUPP. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeInter25. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeMSI. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodePDF417. placeBarcode(PdfCanvas canvas, Color foreground)
Places the barcode in aPdfCanvas
.Rectangle
BarcodePDF417. placeBarcode(PdfCanvas canvas, Color foreground, float moduleWidth, float moduleHeight)
Places the barcode in aPdfCanvas
.Rectangle
BarcodePostnet. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Rectangle
BarcodeQRCode. placeBarcode(PdfCanvas canvas, Color foreground)
Rectangle
BarcodeQRCode. placeBarcode(PdfCanvas canvas, Color foreground, float moduleSide)
* Places the barcode in aPdfCanvas
. -
Uses of PdfCanvas in com.itextpdf.forms.fields
Methods in com.itextpdf.forms.fields with parameters of type PdfCanvas Modifier and Type Method Description protected void
PdfFormAnnotation. drawBorder(PdfCanvas canvas, PdfFormXObject xObject, float width, float height)
Draws a border using the borderWidth and borderColor of the form field. -
Uses of PdfCanvas in com.itextpdf.forms.fields.borders
Methods in com.itextpdf.forms.fields.borders with parameters of type PdfCanvas Modifier and Type Method Description void
BeveledBorder. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
InsetBorder. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
UnderlineBorder. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
BeveledBorder. drawCellBorder(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide)
Draws the border of a cell.void
InsetBorder. drawCellBorder(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide)
Draws the border of a cell.void
UnderlineBorder. drawCellBorder(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide)
Draws the border of a cell. -
Uses of PdfCanvas in com.itextpdf.forms.form.renderer.checkboximpl
Methods in com.itextpdf.forms.form.renderer.checkboximpl with parameters of type PdfCanvas Modifier and Type Method Description private static void
PdfACheckBoxRenderingStrategy. drawIcon(CheckBoxType type, PdfCanvas canvas1, Rectangle rectangle)
private void
PdfCheckBoxRenderingStrategy. drawZapfdingbatsIcon(PdfFont fontContainingSymbols, java.lang.String text, float fontSize, Rectangle rectangle, PdfCanvas canvas)
-
Uses of PdfCanvas in com.itextpdf.forms.util
Methods in com.itextpdf.forms.util with parameters of type PdfCanvas Modifier and Type Method Description static void
DrawingUtil. drawCircle(PdfCanvas canvas, float centerX, float centerY, float radius)
Draws a circle with the specified radius.static void
DrawingUtil. drawCross(PdfCanvas canvas, float width, float height, float borderWidth)
Draws a cross with the specified width and height.private static void
DrawingUtil. drawPdfAAppearanceString(PdfCanvas canvas, float width, float height, float moveX, float moveY, java.lang.String appearanceString)
static void
DrawingUtil. drawPdfACheck(PdfCanvas canvas, float width, float height)
Draws a PDF A compliant check mark in the specified rectangle.static void
DrawingUtil. drawPdfACheck(PdfCanvas canvas, float width, float height, float moveX, float moveY)
Draws a PDF A compliant check mark in the specified rectangle.static void
DrawingUtil. drawPdfACircle(PdfCanvas canvas, float width, float height)
Draws a PDF A compliant circle in the specified rectangle.static void
DrawingUtil. drawPdfACircle(PdfCanvas canvas, float width, float height, float moveX, float moveY)
Draws a PDF A compliant circle in the specified rectangle.static void
DrawingUtil. drawPdfACross(PdfCanvas canvas, float width, float height)
Draws a PDF A compliant cross in the specified rectangle.static void
DrawingUtil. drawPdfACross(PdfCanvas canvas, float width, float height, float moveX, float moveY)
Draws a PDF A compliant cross in the specified rectangle.static void
DrawingUtil. drawPdfADiamond(PdfCanvas canvas, float width, float height)
Draws a PDF A compliant diamond in the specified rectangle.static void
DrawingUtil. drawPdfADiamond(PdfCanvas canvas, float width, float height, float moveX, float moveY)
Draws a PDF A compliant diamond in the specified rectangle.static void
DrawingUtil. drawPdfASquare(PdfCanvas canvas, float width, float height)
Draws a PDF A compliant square in the specified rectangle.static void
DrawingUtil. drawPdfASquare(PdfCanvas canvas, float width, float height, float moveX, float moveY)
Draws a PDF A compliant square in the specified rectangle.static void
DrawingUtil. drawPdfAStar(PdfCanvas canvas, float width, float height)
Draws a PDF A compliant star in the specified rectangle.static void
DrawingUtil. drawPdfAStar(PdfCanvas canvas, float width, float height, float moveX, float moveY)
Draws a PDF A compliant star in the specified rectangle. -
Uses of PdfCanvas in com.itextpdf.kernel.font
Subclasses of PdfCanvas in com.itextpdf.kernel.font Modifier and Type Class Description class
Type3Glyph
The content where Type3 glyphs are written to. -
Uses of PdfCanvas in com.itextpdf.kernel.pdf.canvas
Subclasses of PdfCanvas in com.itextpdf.kernel.pdf.canvas Modifier and Type Class Description class
PdfPatternCanvas
A PdfCanvas instance with an inherent tiling pattern.Methods in com.itextpdf.kernel.pdf.canvas that return PdfCanvas Modifier and Type Method Description private PdfCanvas
PdfCanvas. addFormAt(PdfFormXObject form, float x, float y)
AddsPdfFormXObject
to the specified position.private PdfCanvas
PdfCanvas. addFormFittedIntoRectangle(PdfFormXObject form, Rectangle rect)
AddsPdfFormXObject
fitted into specific rectangle on canvas.private PdfCanvas
PdfCanvas. addFormWithTransformationMatrix(PdfFormXObject form, float a, float b, float c, float d, float e, float f, boolean writeIdentityMatrix)
AddsPdfFormXObject
to canvas.private PdfCanvas
PdfCanvas. addImageAt(PdfImageXObject image, float x, float y)
AddsPdfImageXObject
to the specified position.private PdfCanvas
PdfCanvas. addImageFittedIntoRectangle(PdfImageXObject image, Rectangle rect)
AddsPdfImageXObject
fitted into specific rectangle on canvas.private PdfCanvas
PdfCanvas. addImageWithTransformationMatrix(PdfXObject xObject, float a, float b, float c, float d, float e, float f)
AddsPdfXObject
to canvas.PdfCanvas
PdfCanvas. addXObject(PdfXObject xObject)
AddsPdfXObject
on canvas.PdfCanvas
PdfCanvas. addXObjectAt(PdfXObject xObject, float x, float y)
AddsPdfXObject
to the specified position.PdfCanvas
PdfCanvas. addXObjectFittedIntoRectangle(PdfXObject xObject, Rectangle rect)
AddsPdfXObject
fitted into specific rectangle on canvas.PdfCanvas
PdfCanvas. addXObjectWithTransformationMatrix(PdfXObject xObject, float a, float b, float c, float d, float e, float f)
AddsPdfXObject
to canvas.PdfCanvas
PdfCanvas. arc(double x1, double y1, double x2, double y2, double startAng, double extent)
Draws a partial ellipse inscribed within the rectangle x1,y1,x2,y2, starting at startAng degrees and covering extent degrees.PdfCanvas
PdfCanvas. arcContinuous(double x1, double y1, double x2, double y2, double startAng, double extent)
Draws a partial ellipse with the preceding line to the start of the arc to prevent path broking.PdfCanvas
PdfCanvas. beginLayer(IPdfOCG layer)
Begins a graphic block whose visibility is controlled by thelayer
.PdfCanvas
PdfCanvas. beginMarkedContent(PdfName tag)
Manually start a Marked Content sequence.PdfCanvas
PdfCanvas. beginMarkedContent(PdfName tag, PdfDictionary properties)
Manually start a Marked Content sequence with properties.PdfCanvas
PdfCanvas. beginText()
Begins text block (PDF BT operator).PdfCanvas
PdfCanvas. beginVariableText()
Begins variable text blockPdfCanvas
PdfCanvas. circle(double x, double y, double r)
Draws a circle.PdfCanvas
PdfCanvas. clip()
Modify the current clipping path by intersecting it with the current path, using the nonzero winding rule to determine which regions lie inside the clipping path.PdfCanvas
PdfCanvas. closePath()
Closes the current subpath by appending a straight line segment from the current point to the starting point of the subpath.PdfCanvas
PdfCanvas. closePathEoFillStroke()
Closes the path, fills it using the even-odd rule to determine the region to fill and strokes it.PdfCanvas
PdfCanvas. closePathFillStroke()
Closes the path, fills it using the non-zero winding number rule to determine the region to fill and strokes it.PdfCanvas
PdfCanvas. closePathStroke()
Closes the path and strokes it.PdfCanvas
PdfCanvas. closeTag()
Manually close a tag, ending a Marked Content sequence.PdfCanvas
PdfCanvas. concatMatrix(double a, double b, double c, double d, double e, double f)
Concatenates the 2x3 affine transformation matrix to the current matrix in the content stream managed by this Canvas.PdfCanvas
PdfCanvas. concatMatrix(AffineTransform transform)
Concatenates the affine transformation matrix to the current matrix in the content stream managed by this Canvas.PdfCanvas
PdfCanvas. concatMatrix(PdfArray array)
Concatenates the 2x3 affine transformation matrix to the current matrix in the content stream managed by this Canvas.PdfCanvas
PdfCanvas. curveFromTo(double x1, double y1, double x3, double y3)
Appends a Bezier curve to the path, starting from the current point.PdfCanvas
PdfCanvas. curveTo(double x2, double y2, double x3, double y3)
Appends a Bezier curve to the path, starting from the current point.PdfCanvas
PdfCanvas. curveTo(double x1, double y1, double x2, double y2, double x3, double y3)
Appends a Bêzier curve to the path, starting from the current point.private PdfCanvas
PdfCanvas. drawArc(double x1, double y1, double x2, double y2, double startAng, double extent, boolean continuous)
PdfCanvas
PdfCanvas. ellipse(double x1, double y1, double x2, double y2)
Draws an ellipse inscribed within the rectangle x1,y1,x2,y2.PdfCanvas
PdfCanvas. endLayer()
Ends OCG layer.PdfCanvas
PdfCanvas. endMarkedContent()
Manually end a Marked Content sequence.PdfCanvas
PdfCanvas. endPath()
Ends the path without filling or stroking it.PdfCanvas
PdfCanvas. endText()
Ends text block (PDF ET operator).PdfCanvas
PdfCanvas. endVariableText()
Ends variable text blockPdfCanvas
PdfCanvas. 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.PdfCanvas
PdfCanvas. eoFill()
EOFills current path.PdfCanvas
PdfCanvas. eoFillStroke()
Fills the path, using the even-odd rule to determine the region to fill and strokes it.PdfCanvas
PdfCanvas. fill()
Fills current path.PdfCanvas
PdfCanvas. fillStroke()
Fills the path using the non-zero winding number rule to determine the region to fill and strokes it.PdfCanvas
PdfCanvas. lineTo(double x, double y)
Appends a straight line segment from the current point (x, y).PdfCanvas
PdfCanvas. moveText(double x, double y)
Moves text by shifting text line matrix (PDF Td operator).PdfCanvas
PdfCanvas. moveTextWithLeading(float x, float y)
Moves to the start of the next line, offset from the start of the current line.PdfCanvas
PdfCanvas. moveTo(double x, double y)
Move the current point (x, y), omitting any connecting line segment.PdfCanvas
PdfCanvas. newlineShowText(float wordSpacing, float charSpacing, java.lang.String text)
Moves to the next line and shows text string, using the given values of the character and word spacing parameters.PdfCanvas
PdfCanvas. newlineShowText(java.lang.String text)
Moves to the next line and showstext
.PdfCanvas
PdfCanvas. newlineText()
Moves to the start of the next line.PdfCanvas
PdfCanvas. openTag(CanvasTag tag)
Manually open a canvas tag, beginning a Marked Content sequence.PdfCanvas
PdfCanvas. openTag(TagReference tagReference)
Open a tag, beginning a Marked Content sequence.PdfCanvas
PdfCanvas. paintShading(AbstractPdfShading shading)
Paints a shading object and adds it to the resources of this canvasPdfCanvas
PdfCanvas. rectangle(double x, double y, double width, double height)
Draws a rectangle.PdfCanvas
PdfCanvas. rectangle(Rectangle rectangle)
Draws a rectangle.PdfCanvas
PdfCanvas. resetFillColorCmyk()
Changes the current color for filling paths to black.PdfCanvas
PdfCanvas. resetFillColorGray()
Changes the current color for filling paths to black.PdfCanvas
PdfCanvas. resetFillColorRgb()
Changes the current color for filling paths to black.PdfCanvas
PdfCanvas. resetStrokeColorCmyk()
Changes the current color for stroking paths to black.PdfCanvas
PdfCanvas. resetStrokeColorGray()
Changes the current color for stroking paths to black.PdfCanvas
PdfCanvas. resetStrokeColorRgb()
Changes the current color for stroking paths to black.PdfCanvas
PdfCanvas. restoreState()
Restores graphics state.PdfCanvas
PdfCanvas. roundRectangle(double x, double y, double width, double height, double radius)
Draws rounded rectangle.PdfCanvas
PdfCanvas. roundRectangle(double x, double y, double width, double height, double rx, double ry, AffineTransform transform)
Draws rounded rectangle.PdfCanvas
PdfCanvas. saveState()
Saves graphics state.PdfCanvas
PdfCanvas. setCharacterSpacing(float charSpacing)
Sets the character spacing parameter.PdfCanvas
PdfCanvas. setColor(Color color, boolean fill)
Changes the current color for paths.PdfCanvas
PdfCanvas. setColor(PdfColorSpace colorSpace, float[] colorValue, boolean fill)
Changes the current color for paths.PdfCanvas
PdfCanvas. setColor(PdfColorSpace colorSpace, float[] colorValue, PdfPattern pattern, boolean fill)
Changes the current color for paths with an explicitly defined pattern.PdfCanvas
PdfPatternCanvas. setColor(PdfColorSpace colorSpace, float[] colorValue, PdfPattern pattern, boolean fill)
PdfCanvas
PdfCanvas. setExtGState(PdfExtGState extGState)
Sets the ExtGState dictionary for the current graphics statePdfCanvas
PdfCanvas. setFillColor(Color color)
Changes the current color for filling paths.PdfCanvas
PdfCanvas. setFillColorCmyk(float c, float m, float y, float k)
Changes the current color for filling paths to a CMYK value.PdfCanvas
PdfCanvas. setFillColorGray(float g)
Changes the current color for filling paths to a grayscale value.PdfCanvas
PdfCanvas. setFillColorRgb(float r, float g, float b)
Changes the current color for filling paths to an RGB value.PdfCanvas
PdfCanvas. setFillColorShading(PdfPattern.Shading shading)
Adds or changes the shading of the current fill color path.PdfCanvas
PdfCanvas. setFlatnessTolerance(float flatnessTolerance)
Changes the Flatness.PdfCanvas
PdfCanvas. setFontAndSize(PdfFont font, float size)
Sets font and size (PDF Tf operator).PdfCanvas
PdfCanvas. setHorizontalScaling(float scale)
Sets the horizontal scaling parameter.PdfCanvas
PdfCanvas. setLeading(float leading)
Sets the text leading parameter.PdfCanvas
PdfCanvas. setLineCapStyle(int lineCapStyle)
Sets the line cap style, the shape to be used at the ends of open subpaths when they are stroked.PdfCanvas
PdfCanvas. setLineDash(float phase)
Changes the value of the line dash pattern.PdfCanvas
PdfCanvas. setLineDash(float[] array, float phase)
Changes the value of the line dash pattern.PdfCanvas
PdfCanvas. setLineDash(float unitsOn, float phase)
Changes the value of the line dash pattern.PdfCanvas
PdfCanvas. setLineDash(float unitsOn, float unitsOff, float phase)
Changes the value of the line dash pattern.PdfCanvas
PdfCanvas. setLineJoinStyle(int lineJoinStyle)
Sets the line join style, the shape to be used at the corners of paths when they are stroked.PdfCanvas
PdfCanvas. setLineWidth(float lineWidth)
Sets line width.PdfCanvas
PdfCanvas. setMiterLimit(float miterLimit)
Sets the miter limit, a parameter specifying the maximum length a miter join may extend beyond the join point, relative to the angle of the line segments.PdfCanvas
PdfCanvas. setRenderingIntent(PdfName renderingIntent)
Set the rendering intent.PdfCanvas
PdfCanvas. setStrokeColor(Color color)
Changes the current color for stroking paths.PdfCanvas
PdfCanvas. setStrokeColorCmyk(float c, float m, float y, float k)
Changes the current color for stroking paths to a CMYK value.PdfCanvas
PdfCanvas. setStrokeColorGray(float g)
Changes the current color for stroking paths to a grayscale value.PdfCanvas
PdfCanvas. setStrokeColorRgb(float r, float g, float b)
Changes the current color for stroking paths to an RGB value.PdfCanvas
PdfCanvas. setStrokeColorShading(PdfPattern.Shading shading)
Adds or changes the shading of the current stroke color path.PdfCanvas
PdfCanvas. setTextMatrix(float x, float y)
Changes the text matrix.PdfCanvas
PdfCanvas. setTextMatrix(float a, float b, float c, float d, float x, float y)
Replaces the text matrix.PdfCanvas
PdfCanvas. setTextMatrix(AffineTransform transform)
Replaces the text matrix.PdfCanvas
PdfCanvas. setTextRenderingMode(int textRenderingMode)
Sets text rendering mode.PdfCanvas
PdfCanvas. setTextRise(float textRise)
Sets the text rise parameter.PdfCanvas
PdfCanvas. setWordSpacing(float wordSpacing)
Sets the word spacing parameter.PdfCanvas
PdfCanvas. showText(GlyphLine text)
Shows text (operator Tj).PdfCanvas
PdfCanvas. showText(GlyphLine text, java.util.Iterator<GlyphLine.GlyphLinePart> iterator)
Shows text (operator Tj).PdfCanvas
PdfCanvas. showText(PdfArray textArray)
Shows text (operator TJ)PdfCanvas
PdfCanvas. showText(java.lang.String text)
Shows text (operator Tj).PdfCanvas
PdfCanvas. stroke()
Strokes the path.PdfCanvas
PdfCanvas. writeLiteral(char c)
Outputs achar
directly to the content.PdfCanvas
PdfCanvas. writeLiteral(float n)
Outputs afloat
directly to the content.PdfCanvas
PdfCanvas. writeLiteral(java.lang.String s)
Outputs aString
directly to the content. -
Uses of PdfCanvas in com.itextpdf.kernel.pdf.canvas.draw
Methods in com.itextpdf.kernel.pdf.canvas.draw with parameters of type PdfCanvas Modifier and Type Method Description void
DashedLine. draw(PdfCanvas canvas, Rectangle drawArea)
void
DottedLine. draw(PdfCanvas canvas, Rectangle drawArea)
void
ILineDrawer. draw(PdfCanvas canvas, Rectangle drawArea)
Performs configurable drawing operations related to specific region coordinates on a canvas.void
SolidLine. draw(PdfCanvas canvas, Rectangle drawArea)
-
Uses of PdfCanvas in com.itextpdf.kernel.pdf.canvas.wmf
Fields in com.itextpdf.kernel.pdf.canvas.wmf declared as PdfCanvas Modifier and Type Field Description private PdfCanvas
MetaDo. cb
PdfCanvas of the MetaDo object.Methods in com.itextpdf.kernel.pdf.canvas.wmf with parameters of type PdfCanvas Modifier and Type Method Description void
MetaState. cleanup(PdfCanvas cb)
Restres the state of the specified PdfCanvas object for as many times as there are saved states on the stack.void
MetaState. restoreState(int index, PdfCanvas cb)
Restores the state to the next state on the saved states stack.void
MetaState. saveState(PdfCanvas cb)
Saves the state of this MetaState object.void
MetaState. selectMetaObject(int index, PdfCanvas cb)
Select the MetaObject at the specified index and prepare the PdfCanvas.void
MetaState. setLineJoinPolygon(PdfCanvas cb)
Sets the line join style toPdfCanvasConstants.LineJoinStyle.ROUND
if lineJoin is 0.void
MetaState. setLineJoinRectangle(PdfCanvas cb)
Sets the line join style toPdfCanvasConstants.LineJoinStyle.MITER
if lineJoin isn't 0.Constructors in com.itextpdf.kernel.pdf.canvas.wmf with parameters of type PdfCanvas Constructor Description MetaDo(java.io.InputStream in, PdfCanvas cb)
Creates a MetaDo instance. -
Uses of PdfCanvas in com.itextpdf.kernel.utils.annotationsflattening
Methods in com.itextpdf.kernel.utils.annotationsflattening that return PdfCanvas Modifier and Type Method Description protected PdfCanvas
DefaultAnnotationFlattener. createCanvas(PdfPage page)
Creates a canvas.protected PdfCanvas
HighLightTextMarkupAnnotationFlattener. createCanvas(PdfPage page)
Creates a canvas. -
Uses of PdfCanvas in com.itextpdf.layout
Fields in com.itextpdf.layout declared as PdfCanvas Modifier and Type Field Description protected PdfCanvas
Canvas. pdfCanvas
Methods in com.itextpdf.layout that return PdfCanvas Modifier and Type Method Description PdfCanvas
Canvas. getPdfCanvas()
Gets thePdfCanvas
.private static PdfCanvas
Canvas. initPdfCanvasOrThrowIfPageIsFlushed(PdfPage page)
Constructors in com.itextpdf.layout with parameters of type PdfCanvas Constructor Description Canvas(PdfCanvas pdfCanvas, Rectangle rootArea)
Creates a new Canvas to manipulate a specific content stream, which might be for example a page orPdfFormXObject
stream.Canvas(PdfCanvas pdfCanvas, Rectangle rootArea, boolean immediateFlush)
Creates a new Canvas to manipulate a specific document and page. -
Uses of PdfCanvas in com.itextpdf.layout.borders
Methods in com.itextpdf.layout.borders with parameters of type PdfCanvas Modifier and Type Method Description void
Border. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, float horizontalRadius1, float verticalRadius1, float horizontalRadius2, float verticalRadius2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
Border. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, float borderRadius, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.abstract void
Border. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
Border. draw(PdfCanvas canvas, Rectangle rectangle)
Draw borders around the target rectangle.void
Border3D. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
DashedBorder. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, float horizontalRadius1, float verticalRadius1, float horizontalRadius2, float verticalRadius2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
void
DashedBorder. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
DottedBorder. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, float horizontalRadius1, float verticalRadius1, float horizontalRadius2, float verticalRadius2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
DottedBorder. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
DoubleBorder. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
FixedDashedBorder. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, float horizontalRadius1, float verticalRadius1, float horizontalRadius2, float verticalRadius2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
FixedDashedBorder. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
RoundDotsBorder. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, float horizontalRadius1, float verticalRadius1, float horizontalRadius2, float verticalRadius2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
RoundDotsBorder. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
SolidBorder. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, float horizontalRadius1, float verticalRadius1, float horizontalRadius2, float verticalRadius2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.void
SolidBorder. draw(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
All borders are supposed to be drawn in such way, that inner content of the element is on the right from the drawing direction.abstract void
Border. drawCellBorder(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide)
Draws the border of a cell.void
Border3D. drawCellBorder(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide)
Draws the border of a cell.void
DashedBorder. drawCellBorder(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide)
Draws the border of a cell.void
DottedBorder. drawCellBorder(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide)
Draws the border of a cell.void
DoubleBorder. drawCellBorder(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide)
Draws the border of a cell.void
FixedDashedBorder. drawCellBorder(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide)
Draws the border of a cell.void
RoundDotsBorder. drawCellBorder(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide)
Draws the border of a cell.void
SolidBorder. drawCellBorder(PdfCanvas canvas, float x1, float y1, float x2, float y2, Border.Side defaultSide)
Draws the border of a cell.protected void
Border. drawDiscontinuousBorders(PdfCanvas canvas, Rectangle boundingRectangle, float[] horizontalRadii, float[] verticalRadii, Border.Side defaultSide, float borderWidthBefore, float borderWidthAfter)
Perform drawing operations to draw discontinuous borders.protected abstract void
Border3D. setInnerHalfColor(PdfCanvas canvas, Border.Side side)
Sets the fill color for the inner half of3D Border
protected void
GrooveBorder. setInnerHalfColor(PdfCanvas canvas, Border.Side side)
Sets the fill color for the inner half of3D Border
protected void
InsetBorder. setInnerHalfColor(PdfCanvas canvas, Border.Side side)
Sets the fill color for the inner half of3D Border
protected void
OutsetBorder. setInnerHalfColor(PdfCanvas canvas, Border.Side side)
Sets the fill color for the inner half of3D Border
protected void
RidgeBorder. setInnerHalfColor(PdfCanvas canvas, Border.Side side)
Sets the fill color for the inner half of3D Border
protected abstract void
Border3D. setOuterHalfColor(PdfCanvas canvas, Border.Side side)
Sets the fill color for the outer half of3D Border
protected void
GrooveBorder. setOuterHalfColor(PdfCanvas canvas, Border.Side side)
Sets the fill color for the outer half of3D Border
protected void
InsetBorder. setOuterHalfColor(PdfCanvas canvas, Border.Side side)
Sets the fill color for the outer half of3D Border
protected void
OutsetBorder. setOuterHalfColor(PdfCanvas canvas, Border.Side side)
Sets the fill color for the outer half of3D Border
protected void
RidgeBorder. setOuterHalfColor(PdfCanvas canvas, Border.Side side)
Sets the fill color for the outer half of3D Border
-
Uses of PdfCanvas in com.itextpdf.layout.properties
Methods in com.itextpdf.layout.properties with parameters of type PdfCanvas Modifier and Type Method Description void
TransparentColor. applyFillTransparency(PdfCanvas canvas)
Sets the opacity value for non-stroking operations in the transparent imaging model.void
TransparentColor. applyStrokeTransparency(PdfCanvas canvas)
Sets the opacity value for stroking operations in the transparent imaging model.private void
TransparentColor. applyTransparency(PdfCanvas canvas, boolean isStroke)
-
Uses of PdfCanvas in com.itextpdf.layout.renderer
Fields in com.itextpdf.layout.renderer declared as PdfCanvas Modifier and Type Field Description private PdfCanvas
DrawContext. canvas
Methods in com.itextpdf.layout.renderer that return PdfCanvas Modifier and Type Method Description PdfCanvas
DrawContext. getCanvas()
Get pdf canvas.Methods in com.itextpdf.layout.renderer with parameters of type PdfCanvas Modifier and Type Method Description private void
ImageRenderer. beginObjectFitImageClipping(PdfCanvas canvas)
protected void
BlockRenderer. beginRotationIfApplied(PdfCanvas canvas)
This method starts rotation for the renderer if rotation angle property is specified.protected void
AbstractRenderer. beginTransformationIfApplied(PdfCanvas canvas)
private void
AbstractRenderer. clipInnerArea(PdfCanvas canvas, float[] horizontalRadii, float[] verticalRadii, float[] outerBox, float[] cornersX, float[] cornersY, float[] borderWidths)
private void
AbstractRenderer. clipOuterArea(PdfCanvas canvas, float[] horizontalRadii, float[] verticalRadii, float[] outerBox, float[] cornersX, float[] cornersY)
private void
TextRenderer. drawAndTagSingleUnderline(boolean isTagged, Underline underline, TransparentColor fontStrokeColor, PdfCanvas canvas, float fontSize, float italicAngleTan)
protected TableBorders
CollapsedTableBorders. drawHorizontalBorder(PdfCanvas canvas, TableBorderDescriptor borderDescriptor)
protected TableBorders
SeparatedTableBorders. drawHorizontalBorder(PdfCanvas canvas, TableBorderDescriptor borderDescriptor)
protected abstract TableBorders
TableBorders. drawHorizontalBorder(PdfCanvas canvas, TableBorderDescriptor borderDescriptor)
protected void
TextRenderer. drawSingleUnderline(Underline underline, TransparentColor fontColor, PdfCanvas canvas, float fontSize, float italicAngleTan)
private void
TextRenderer. drawText(PdfCanvas canvas, UnitValue fontSize, boolean italicSimulation, java.lang.Integer textRenderingMode, java.lang.Float strokeWidth, TransparentColor fontColor, TransparentColor strokeColor)
protected TableBorders
CollapsedTableBorders. drawVerticalBorder(PdfCanvas canvas, TableBorderDescriptor borderDescriptor)
protected TableBorders
SeparatedTableBorders. drawVerticalBorder(PdfCanvas canvas, TableBorderDescriptor borderDescriptor)
protected abstract TableBorders
TableBorders. drawVerticalBorder(PdfCanvas canvas, TableBorderDescriptor borderDescriptor)
private void
ImageRenderer. endObjectFitImageClipping(PdfCanvas canvas)
protected void
BlockRenderer. endRotationIfApplied(PdfCanvas canvas)
This method ends rotation for the renderer if applied.protected void
AbstractRenderer. endTransformationIfApplied(PdfCanvas canvas)
Method parameters in com.itextpdf.layout.renderer with type arguments of type PdfCanvas Modifier and Type Method Description private void
MulticolRenderer. drawTaggedWhenNeeded(DrawContext drawContext, java.util.function.Consumer<PdfCanvas> action)
Constructors in com.itextpdf.layout.renderer with parameters of type PdfCanvas Constructor Description DrawContext(PdfDocument document, PdfCanvas canvas)
Create drawing context by setting document and pdf canvas on which drawing will be performed.DrawContext(PdfDocument document, PdfCanvas canvas, boolean enableTagging)
Create drawing context by setting document and pdf canvas on which drawing will be performed. -
Uses of PdfCanvas in com.itextpdf.svg.converter
Methods in com.itextpdf.svg.converter with parameters of type PdfCanvas Modifier and Type Method Description private static void
SvgConverter. draw(PdfFormXObject pdfForm, PdfCanvas canvas)
(package private) static void
SvgConverter. draw(PdfFormXObject pdfForm, PdfCanvas canvas, float x, float y)
static void
SvgConverter. drawOnCanvas(java.io.InputStream stream, PdfCanvas canvas)
Draws a Stream containing valid SVG to a pre-made canvas object.static void
SvgConverter. drawOnCanvas(java.io.InputStream stream, PdfCanvas canvas, float x, float y)
Draws a Stream containing valid SVG to a pre-made canvas object, to a specified location.static void
SvgConverter. drawOnCanvas(java.io.InputStream stream, PdfCanvas canvas, float x, float y, ISvgConverterProperties props)
Draws a String containing valid SVG to a pre-made canvas object, at a specified position on the canvas.static void
SvgConverter. drawOnCanvas(java.io.InputStream stream, PdfCanvas canvas, ISvgConverterProperties props)
Draws a Stream containing valid SVG to a pre-made canvas object.static void
SvgConverter. drawOnCanvas(java.lang.String content, PdfCanvas canvas)
Draws a String containing valid SVG to a pre-made canvas object.static void
SvgConverter. drawOnCanvas(java.lang.String content, PdfCanvas canvas, float x, float y)
Draws a String containing valid SVG to a pre-made canvas object.static void
SvgConverter. drawOnCanvas(java.lang.String content, PdfCanvas canvas, float x, float y, ISvgConverterProperties props)
draws a String containing valid SVG to a pre-made canvas object, at a specified location.static void
SvgConverter. drawOnCanvas(java.lang.String content, PdfCanvas canvas, ISvgConverterProperties props)
Draws a String containing valid SVG to a pre-made canvas object.private static void
SvgConverter. withTaggingIfNeeded(PdfDocument document, PdfCanvas canvas, PdfPage page, ISvgConverterProperties props, IOThrowingAction function)
-
Uses of PdfCanvas in com.itextpdf.svg.renderers
Fields in com.itextpdf.svg.renderers with type parameters of type PdfCanvas Modifier and Type Field Description private java.util.Deque<PdfCanvas>
SvgDrawContext. canvases
Methods in com.itextpdf.svg.renderers that return PdfCanvas Modifier and Type Method Description PdfCanvas
SvgDrawContext. getCurrentCanvas()
Retrieves the current top of the stack, without modifying the stack.PdfCanvas
SvgDrawContext. popCanvas()
Retrieves the current top of the stack, thereby taking the current item off the stack.Methods in com.itextpdf.svg.renderers with parameters of type PdfCanvas Modifier and Type Method Description void
SvgDrawContext. pushCanvas(PdfCanvas canvas)
Adds aPdfCanvas
to the stack (by definition its top), for use in drawing operations. -
Uses of PdfCanvas in com.itextpdf.svg.renderers.impl
Methods in com.itextpdf.svg.renderers.impl with parameters of type PdfCanvas Modifier and Type Method Description (package private) void
AbstractSvgNodeRenderer. doStrokeOrFill(java.lang.String fillRuleRawValue, PdfCanvas currentCanvas)
Do stroke or fill based ondoFill/doStroke
fields.(package private) void
EllipseSvgNodeRenderer. doStrokeOrFill(java.lang.String fillRuleRawValue, PdfCanvas currentCanvas)
(package private) void
PolygonSvgNodeRenderer. doStrokeOrFill(java.lang.String fillRuleRawValue, PdfCanvas currentCanvas)
-
Uses of PdfCanvas in com.itextpdf.svg.renderers.path
Methods in com.itextpdf.svg.renderers.path with parameters of type PdfCanvas Modifier and Type Method Description void
IPathShape. draw(PdfCanvas canvas)
Deprecated. -
Uses of PdfCanvas in com.itextpdf.svg.renderers.path.impl
Methods in com.itextpdf.svg.renderers.path.impl with parameters of type PdfCanvas Modifier and Type Method Description void
AbstractPathShape. draw(PdfCanvas canvas)
private void
EllipticalCurveTo. drawCurve(PdfCanvas canvas, Point cp1, Point cp2, Point end)
-
Uses of PdfCanvas in com.itextpdf.svg.utils
Methods in com.itextpdf.svg.utils with parameters of type PdfCanvas Modifier and Type Method Description static void
DrawUtils. arc(double x1, double y1, double x2, double y2, double startAng, double extent, PdfCanvas cv)
Draw an arc on the passed canvas, enclosed by the rectangle for which two opposite corners are specified.static void
DrawUtils. arc(double x1, double y1, double x2, double y2, double startAng, double extent, PdfCanvas cv, AffineTransform transform)
Draw an arc on the passed canvas with provided transform, enclosed by the rectangle for which two opposite corners are specified.static void
DrawUtils. doStrokeOrFillForClosedFigure(java.lang.String fillRuleRawValue, PdfCanvas currentCanvas, boolean doStroke)
Perform stroke or fill operation for closed figure (e.g.
-