PdfCanvas Class

Class for a canvas (a two-dimensional region on which all painting occurs).

Inheritance Hierarchy

System.Object
  BitMiracle.Docotic.Pdf.PdfCanvas

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public sealed class PdfCanvas
VB
Public NotInheritable Class PdfCanvas

The PdfCanvas type exposes the following members.

Properties

  NameDescription
Public propertyBlendMode
(PDF 1.4) Gets or sets the current blend mode.
Public propertyBrush
Gets the PdfBrush object that encapsulates the properties related to non-stroking operations.
Public propertyCharacterSpacing
Gets or sets the current character spacing.
Public propertyCurrentPosition
Gets or sets the current position for path operations.
Public propertyFlatnessTolerance
Gets or sets the flatness tolerance.
Public propertyFont
Gets or sets the current font for text-drawing operation.
Public propertyFontSize
Gets or sets the size of the current font in points.
Public propertyPen
Gets the PdfPen object that encapsulates the properties related to stroking operations.
Public propertyTextAngle
Gets or sets the text rotation angle in degrees.
Public propertyTextHorizontalScaling
Gets or sets the current horizontal scaling of text.
Public propertyTextPosition
Gets or sets the current text position.
Public propertyTextRenderingMode
Gets or sets the current text rendering mode.
Public propertyTextRise
Gets or sets the current text rise.
Public propertyTransformationMatrix
Gets the current transformation matrix for this PdfCanvas.
Public propertyWordSpacing
Gets or sets the current word spacing.

Methods

  NameDescription
Public methodAppendArc(PdfRectangle, PdfPoint, PdfPoint)
Appends an arc representing a portion of an ellipse specified by PdfRectangle structure and two radial endpoints to the current path.
Public methodAppendArc(PdfRectangle, PdfPoint, PdfPoint, Boolean)
Appends an arc representing a portion of an ellipse specified by PdfRectangle structure, two radial endpoints and a direction to the current path.
Public methodAppendArc(PdfPoint, Double, Double, Double, Double)
Appends a straight line segment and an arc representing a portion of an ellipse specified by radius and center to the current path.
Public methodAppendCircle
Appends a circle with specified center coordinates and radius to the current path.
Public methodAppendCurveTo
Appends a cubic Bézier curve to the current path.
Public methodAppendEllipse
Appends an ellipse specified by a bounding PdfRectangle structure to the current path.
Public methodAppendLineTo(PdfPoint)
Appends a straight line segment from the CurrentPosition to specified endpoint to the current path.
Public methodAppendLineTo(Double, Double)
Appends a straight line segment from the CurrentPosition to specified endpoint to the current path.
Public methodAppendPie(PdfRectangle, PdfPoint, PdfPoint)
Appends a pie shape defined by an ellipse specified by a PdfRectangle structure and two radial lines to the current path.
Public methodAppendPie(PdfRectangle, Double, Double)
Appends a pie shape defined by an ellipse specified by a PdfRectangle structure and two radial lines to the current path.
Public methodAppendRectangle(PdfRectangle)
Appends a rectangle specified by a PdfRectangle structure to the current path as a complete subpath.
Public methodAppendRectangle(PdfRectangle, Double)
Appends a rotated rectangle specified by a PdfRectangle structure to the current path as a complete subpath.
Public methodAppendRoundedRectangle
Appends a rectangle structure with rounded corners specified by a PdfRectangle to the current path as a complete subpath.
Public methodClear
Clears the entire canvas and resets all current graphics parameters to their defaults.
Public methodCloseAndStrokePath
Closes and strokes the current path.
Public methodClosePath
Closes the current subpath by appending a straight line segment from the CurrentPosition to the starting point of the subpath.
Public methodDrawArc(PdfRectangle, PdfPoint, PdfPoint)
Draws an arc representing a portion of an ellipse specified by PdfRectangle structure and two radial endpoints.
Public methodDrawArc(PdfRectangle, PdfPoint, PdfPoint, Boolean)
Draws an arc representing a portion of an ellipse specified by PdfRectangle structure, two radial endpoints and a direction.
Public methodDrawArc(PdfPoint, Double, Double, Double, Double)
Draws a straight line and an arc representing a portion of an ellipse specified by radius and center.
Public methodDrawCircle(PdfPoint, Double)
Draws a circle with specified center coordinates and radius.
Public methodDrawCircle(PdfPoint, Double, PdfDrawMode)
Draws a circle with specified center coordinates and radius.
Public methodDrawCurveTo
Draws a cubic Bézier curve.
Public methodDrawEllipse(PdfRectangle)
Draws an ellipse specified by a bounding PdfRectangle structure.
Public methodDrawEllipse(PdfRectangle, PdfDrawMode)
Draws an ellipse specified by a bounding PdfRectangle structure.
Public methodDrawImage(PdfImage, PdfPoint)
Draws the specified image, using its original size, at the specified location.
Public methodDrawImage(PdfImage, PdfPoint, Double)
Draws the specified image, using its original size, at the specified location and with the specified rotation.
Public methodDrawImage(PdfImage, Double, Double)
Draws the specified image, using its original size, at the specified location.
Public methodDrawImage(PdfImage, PdfPoint, PdfSize, Double)
Draws the specified image at the specified location with specified size and with the specified rotation.
Public methodDrawImage(PdfImage, Double, Double, Double)
Draws the specified image, using its original size, at the specified location and with the specified rotation.
Public methodDrawImage(PdfImage, Double, Double, Double, Double, Double)
Draws the specified image at the specified location with specified size and with the specified rotation.
Public methodDrawLineTo(PdfPoint)
Draws a straight line segment from the CurrentPosition to specified endpoint.
Public methodDrawLineTo(Double, Double)
Draws a straight line segment from the CurrentPosition to specified endpoint.
Public methodDrawPie(PdfRectangle, PdfPoint, PdfPoint)
Draws a pie shape defined by an ellipse specified by a PdfRectangle structure and two radial lines.
Public methodDrawPie(PdfRectangle, Double, Double)
Draws a pie shape defined by an ellipse specified by a PdfRectangle structure and two radial lines.
Public methodDrawPie(PdfRectangle, PdfPoint, PdfPoint, PdfDrawMode)
Draws a pie shape defined by an ellipse specified by a PdfRectangle structure and two radial lines.
Public methodDrawPie(PdfRectangle, Double, Double, PdfDrawMode)
Draws a pie shape defined by an ellipse specified by a PdfRectangle structure and two radial lines.
Public methodDrawRectangle(PdfRectangle)
Draws a rectangle specified by a PdfRectangle structure.
Public methodDrawRectangle(PdfRectangle, PdfDrawMode)
Draws a rectangle specified by a PdfRectangle structure.
Public methodDrawRectangle(PdfRectangle, Double)
Draws a rotated rectangle specified by a PdfRectangle structure.
Public methodDrawRectangle(PdfRectangle, Double, PdfDrawMode)
Draws a rotated rectangle specified by a PdfRectangle structure.
Public methodDrawRoundedRectangle(PdfRectangle, PdfSize)
Draws a rectangle structure with rounded corners specified by a PdfRectangle structure.
Public methodDrawRoundedRectangle(PdfRectangle, PdfSize, PdfDrawMode)
Draws a rectangle structure with rounded corners specified by a PdfRectangle structure.
Public methodDrawString(IEnumerable<PdfCharacterCode>)
Draws the text defined by the specified character codes starting from the current TextPosition.
Public methodDrawString(String)
Draws the specified text string starting from the current TextPosition.
Public methodDrawString(PdfPoint, String)
Draws the specified text string starting from the specified position.
Public methodDrawString(String, PdfStringDrawingOptions)
Draws the specified text string starting from the current TextPosition using the specified options.
Public methodDrawString(Double, Double, String)
Draws the specified text string starting from the specified position.
Public methodDrawString(PdfPoint, String, PdfStringDrawingOptions)
Draws the specified text string starting from the specified position using the specified options.
Public methodDrawString(Double, Double, String, PdfStringDrawingOptions)
Draws the specified text string starting from the specified position using the specified options.
Public methodDrawText
Draws the specified text string using the specified formatting options.
Public methodDrawXObject(PdfXObject, PdfPoint)
Draws the specified XObject, using its original size, at the specified location.
Public methodDrawXObject(PdfXObject, PdfPoint, Double)
Draws the specified object, using its original size, at the specified location and with the specified rotation.
Public methodDrawXObject(PdfXObject, Double, Double)
Draws the specified object, using its original size, at the specified location.
Public methodDrawXObject(PdfXObject, PdfPoint, PdfSize, Double)
Draws the specified object at the specified location with specified size and with the specified rotation.
Public methodDrawXObject(PdfXObject, Double, Double, Double)
Draws the specified object, using its original size, at the specified location and with the specified rotation.
Public methodDrawXObject(PdfXObject, Double, Double, Double, Double, Double)
Draws the specified object at the specified location with specified size and with the specified rotation.
Public methodEquals (Inherited from Object.)
Public methodFillAndStrokePath
Fills and then strokes the current path using the specified rule to determine the region to fill.
Public methodFillPath
Fills the current path using the specified rule to determine the region to fill.
Public methodGetHashCode (Inherited from Object.)
Public methodGetText
Retrieves all text drawn on the canvas in plain text format.
Public methodGetTextData
Gets all text drawn on the canvas as the collection of the PdfTextData objects.
Public methodGetTextHeight
Gets the height of a text in default user space units when drawn with current Font.
Public methodGetTextWidth(String)
Gets the width of the specified string in default user space units when drawn with current Font.
Public methodGetTextWidth(String, PdfMissingGlyphMapper)
Gets the width of the specified string in default user space units when drawn with current Font.
Public methodGetType (Inherited from Object.)
Public methodMeasureText(String)
Measures the specified string when drawn with current Font.
Public methodMeasureText(String, PdfMissingGlyphMapper)
Measures the specified string when drawn with current Font.
Public methodMoveInlineImagesToResources()
Moves all inline images to resources.
Public methodMoveInlineImagesToResources(Predicate<PdfImage>)
Moves some of the inline images to resources.
Public methodResetPath
Resets the current path.
Public methodResetTransform
Resets the current transformation matrix of this PdfCanvas to the identity matrix.
Public methodRestoreState
Restores the last saved graphics state.
Public methodRotateTransform
Applies the specified rotation to the transformation matrix of this PdfCanvas.
Public methodSaveState
Saves the current graphics state.
Public methodScaleTransform
Applies the specified scaling operation to the transformation matrix of this PdfCanvas by prepending it to the transformation matrix.
Public methodSetClip
Modifies the current clipping path by intersecting it with the current path, using the specified rule to determine which regions lay inside the clipping path.
Public methodSkewTransform
Skews the x axis by an angle alpha and the y axis by an angle beta.
Public methodStrokePath
Strokes the current path.
Public methodToString (Inherited from Object.)
Public methodTransform
Transforms coordinate system of this PdfCanvas by multiplying its current transformation matrix by specified PdfMatrix.
Public methodTranslateTransform
Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this PdfCanvas.

See Also