| Package | Description |
|---|---|
| com.itextpdf.kernel.font | |
| com.itextpdf.kernel.pdf.canvas | |
| com.itextpdf.kernel.pdf.canvas.draw | |
| com.itextpdf.kernel.pdf.canvas.wmf |
| Modifier and Type | Class and Description |
|---|---|
class |
Type3Glyph
The content where Type3 glyphs are written to.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PdfPatternCanvas
A PdfCanvas instance with an inherent tiling pattern.
|
| Modifier and Type | Method and Description |
|---|---|
PdfCanvas |
PdfCanvas.addXObject(PdfXObject xObject)
Adds
PdfXObject on canvas. |
PdfCanvas |
PdfCanvas.addXObjectAt(PdfXObject xObject,
float x,
float y)
Adds
PdfXObject to the specified position. |
PdfCanvas |
PdfCanvas.addXObjectFittedIntoRectangle(PdfXObject xObject,
Rectangle rect)
Adds
PdfXObject fitted into specific rectangle on canvas. |
PdfCanvas |
PdfCanvas.addXObjectWithTransformationMatrix(PdfXObject xObject,
float a,
float b,
float c,
float d,
float e,
float f)
Adds
PdfXObject 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 the
layer. |
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 block
|
PdfCanvas |
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(AffineTransform transform)
Concatenates the affine transformation matrix to the current matrix
in the content stream managed by this Canvas.
|
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(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.
|
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 block
|
PdfCanvas |
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,
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(String text)
Moves to the next line and shows
text. |
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(PdfShading shading)
Paints a shading object and adds it to the resources of this canvas
|
PdfCanvas |
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.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 state
|
PdfCanvas |
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(AffineTransform transform)
Replaces the text matrix.
|
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.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,
Iterator<GlyphLine.GlyphLinePart> iterator)
Shows text (operator Tj).
|
PdfCanvas |
PdfCanvas.showText(PdfArray textArray)
Shows text (operator TJ)
|
PdfCanvas |
PdfCanvas.showText(String text)
Shows text (operator Tj).
|
PdfCanvas |
PdfCanvas.stroke()
Strokes the path.
|
PdfCanvas |
PdfCanvas.writeLiteral(char c)
Outputs a
char directly to the content. |
PdfCanvas |
PdfCanvas.writeLiteral(float n)
Outputs a
float directly to the content. |
PdfCanvas |
PdfCanvas.writeLiteral(String s)
Outputs a
String directly to the content. |
| Modifier and Type | Method and Description |
|---|---|
void |
DashedLine.draw(PdfCanvas canvas,
Rectangle drawArea) |
void |
DottedLine.draw(PdfCanvas canvas,
Rectangle drawArea) |
void |
SolidLine.draw(PdfCanvas canvas,
Rectangle drawArea) |
void |
ILineDrawer.draw(PdfCanvas canvas,
Rectangle drawArea)
Performs configurable drawing operations related to specific region
coordinates on a canvas.
|
| Modifier and Type | Field and Description |
|---|---|
PdfCanvas |
MetaDo.cb
PdfCanvas of the MetaDo object.
|
| Modifier and Type | Method and 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 to
PdfCanvasConstants.LineJoinStyle.ROUND if lineJoin is 0. |
void |
MetaState.setLineJoinRectangle(PdfCanvas cb)
Sets the line join style to
PdfCanvasConstants.LineJoinStyle.MITER if lineJoin isn't 0. |
| Constructor and Description |
|---|
MetaDo(InputStream in,
PdfCanvas cb)
Creates a MetaDo instance.
|
Copyright © 1998–2023 Apryse Group NV. All rights reserved.