Skip to content

PDFCanvas

Namespace: O2S.Components.PDF4NET.Graphics

Defines a graphic surface.

public class PDFCanvas

Inheritance Object → PDFCanvas

Methods

BeginArtifactMarkedContent()

Begins an artifact marked content sequence.

public void BeginArtifactMarkedContent()

Remarks

Each BeginArtifactMarkedContent call must be paired with a PDFCanvas.EndMarkedContent() call.


BeginMarkedContent(String)

Begins marked content sequence.

public void BeginMarkedContent(string tag)

Parameters

tag String
A name indicating the role or significance of the sequence.

Remarks

Each BeginMarkedContent call must be paired with a PDFCanvas.EndMarkedContent() call.


BeginMarkedContent(String, PDFCosDictionary)

Begins marked content sequence.

public void BeginMarkedContent(string tag, PDFCosDictionary inlineDictionary)

Parameters

tag String
A name indicating the role or significance of the sequence.

inlineDictionary PDFCosDictionary
A property list.

Remarks

Each BeginMarkedContent call must be paired with a PDFCanvas.EndMarkedContent() call.


BeginStructureElement(PDFStructureElement)

Begins a marked content sequence associated with a PDFStructureElement object.

public void BeginStructureElement(PDFStructureElement structureElement)

Parameters

structureElement PDFStructureElement
The structure element associated with the content enclosed by the marked content sequence.

Remarks

Each BeginStructureElement call must be paired with a PDFCanvas.EndStructureElement() call.


BeginStructureElement(String, PDFCosDictionary)

Begins a marked content sequence associated with the specified type and properties.

public PDFMarkedContentSequenceIdentifier BeginStructureElement(string structureElementType, PDFCosDictionary properties)

Parameters

structureElementType String
The type of the structure element associated with the content enclosed by the marked content sequence.

properties PDFCosDictionary
A property list

Returns

PDFMarkedContentSequenceIdentifier

Remarks

Each BeginStructureElement call must be paired with a PDFCanvas.EndStructureElement() call. After this method is called, a call to PDFContentStreamContainer.MapMarkedContentIdentifierToStructureElement(Int32, PDFStructureElement) is required in order to map the marked content identifier to the structure element that includes it. The PDFContentStreamContainer is the PDFPage or PDFFormXObject object that includes this PDFCanvas object.


CompressAndClose()

Compresses the graphic content and closes the graphics surface.

public void CompressAndClose()

Remarks

Call this method to compress the graphic content and reduce memory usage. If this method is not called, the graphic content is stored uncompressed in the PDF file. After calling this method no more drawing is allowed on the graphics.


DrawArc(PDFPen, Double, Double, Double, Double, Double, Double)

Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.

public void DrawArc(PDFPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the arc.

x Double
The x-coordinate of the upper-left corner of the rectangle that defines the ellipse.

y Double
The y-coordinate of the upper-left corner of the rectangle that defines the ellipse.

width Double
Width of the rectangle that defines the ellipse.

height Double
Height of the rectangle that defines the ellipse.

startAngle Double
Angle in degrees measured clockwise from the x-axis to the starting point of the arc.

sweepAngle Double
Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc.


DrawArc(PDFPen, Double, Double, Double, Double, Double, Double, Double)

Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.

public void DrawArc(PDFPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle, double rotation)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the arc.

x Double
The x-coordinate of the upper-left corner of the rectangle that defines the ellipse.

y Double
The y-coordinate of the upper-left corner of the rectangle that defines the ellipse.

width Double
Width of the rectangle that defines the ellipse.

height Double
Height of the rectangle that defines the ellipse.

startAngle Double
Angle in degrees measured clockwise from the x-axis to the starting point of the arc.

sweepAngle Double
Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc.

rotation Double
Rotation angle of the bounding rectangle that defines the arc.


DrawArc(PDFBrush, Double, Double, Double, Double, Double, Double)

Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.

public void DrawArc(PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the rectangle that defines the ellipse.

y Double
The y-coordinate of the upper-left corner of the rectangle that defines the ellipse.

width Double
Width of the rectangle that defines the ellipse.

height Double
Height of the rectangle that defines the ellipse.

startAngle Double
Angle in degrees measured clockwise from the x-axis to the starting point of the arc.

sweepAngle Double
Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc.


DrawArc(PDFBrush, Double, Double, Double, Double, Double, Double, Double)

Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.

public void DrawArc(PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle, double rotation)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the rectangle that defines the ellipse.

y Double
The y-coordinate of the upper-left corner of the rectangle that defines the ellipse.

width Double
Width of the rectangle that defines the ellipse.

height Double
Height of the rectangle that defines the ellipse.

startAngle Double
Angle in degrees measured clockwise from the x-axis to the starting point of the arc.

sweepAngle Double
Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc.

rotation Double
Rotation angle of the bounding rectangle that defines the arc.


DrawArc(PDFPen, PDFBrush, Double, Double, Double, Double, Double, Double)

Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.

public void DrawArc(PDFPen pen, PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the arc.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the rectangle that defines the ellipse.

y Double
The y-coordinate of the upper-left corner of the rectangle that defines the ellipse.

width Double
Width of the rectangle that defines the ellipse.

height Double
Height of the rectangle that defines the ellipse.

startAngle Double
Angle in degrees measured clockwise from the x-axis to the starting point of the arc.

sweepAngle Double
Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc.


DrawArc(PDFPen, PDFBrush, Double, Double, Double, Double, Double, Double, Double)

Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.

public void DrawArc(PDFPen pen, PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle, double rotation)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the arc.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the rectangle that defines the ellipse.

y Double
The y-coordinate of the upper-left corner of the rectangle that defines the ellipse.

width Double
Width of the rectangle that defines the ellipse.

height Double
Height of the rectangle that defines the ellipse.

startAngle Double
Angle in degrees measured clockwise from the x-axis to the starting point of the arc.

sweepAngle Double
Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc.

rotation Double
Rotation angle of the bounding rectangle that defines the arc.


DrawBarcode(PDFBarcode, Double, Double)

Draws a barcode at the specified position.

public void DrawBarcode(PDFBarcode barcode, double x, double y)

Parameters

barcode PDFBarcode
PDFBarcode to draw.

x Double
The x-coordinate of the upper-left corner of the drawn barcode.

y Double
The y-coordinate of the upper-left corner of the drawn barcode.


DrawBezier(PDFPen, PDFPoint, PDFPoint, PDFPoint, PDFPoint)

Draws a Bézier spline specified by four PDFPoint objects.

public void DrawBezier(PDFPen pen, PDFPoint pt1, PDFPoint pt2, PDFPoint pt3, PDFPoint pt4)

Parameters

pen PDFPen
PDFPen object that determines the color, width, and style of the curve.

pt1 PDFPoint
PDFPoint object that represents the starting point of the curve.

pt2 PDFPoint
PDFPoint object that represents the first control point for the curve.

pt3 PDFPoint
PDFPoint object that represents the second control point for the curve.

pt4 PDFPoint
PDFPoint object that represents the ending point of the curve.


DrawBezier(PDFPen, Double, Double, Double, Double, Double, Double, Double, Double)

Draws a Bézier spline defined by four ordered pairs of coordinates that represent points.

public void DrawBezier(PDFPen pen, double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)

Parameters

pen PDFPen
PDFPen object that determines the color, width, and style of the curve.

x1 Double
The x-coordinate of the starting point of the curve.

y1 Double
The y-coordinate of the starting point of the curve.

x2 Double
The x-coordinate of the first control point of the curve.

y2 Double
The y-coordinate of the first control point of the curve.

x3 Double
The x-coordinate of the second control point of the curve.

y3 Double
The y-coordinate of the second control point of the curve.

x4 Double
The x-coordinate of the ending point of the curve.

y4 Double
The y-coordinate of the ending point of the curve.


DrawChord(PDFPen, Double, Double, Double, Double, Double, Double)

Draws a chord representing a region bounded by the intersection of an ellipse and a line segment, called a secant, specified by a pair of coordinates, a width and a height.

public void DrawChord(PDFPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the pie shape.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.


DrawChord(PDFPen, Double, Double, Double, Double, Double, Double, Double)

Draws a chord representing a region bounded by the intersection of an ellipse and a line segment, called a secant, specified by a pair of coordinates, a width and a height.

public void DrawChord(PDFPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle, double rotation)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the pie shape.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.

rotation Double
Rotation angle of the bounding rectangle that defines the chord.


DrawChord(PDFBrush, Double, Double, Double, Double, Double, Double)

Fills the interior of a chord representing a region bounded by the intersection of an ellipse and a line segment, called a secant, specified by a pair of coordinates, a width and a height.

public void DrawChord(PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.


DrawChord(PDFBrush, Double, Double, Double, Double, Double, Double, Double)

Fills the interior of a chord representing a region bounded by the intersection of an ellipse and a line segment, called a secant, specified by a pair of coordinates, a width and a height.

public void DrawChord(PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle, double rotation)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.

rotation Double
Rotation angle of the bounding rectangle that defines the chord.


DrawChord(PDFPen, PDFBrush, Double, Double, Double, Double, Double, Double)

Draws and fills the interior of a chord representing a region bounded by the intersection of an ellipse and a line segment, called a secant, specified by a pair of coordinates, a width and a height.

public void DrawChord(PDFPen pen, PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the pie shape.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.


DrawChord(PDFPen, PDFBrush, Double, Double, Double, Double, Double, Double, Double)

Draws and fills the interior of a chord representing a region bounded by the intersection of an ellipse and a line segment, called a secant, specified by a pair of coordinates, a width and a height.

public void DrawChord(PDFPen pen, PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle, double rotation)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the pie shape.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.

rotation Double
Rotation angle of the bounding rectangle that defines the chord.


DrawCloud(PDFPen, PDFBrush, PDFPoint[], Double, Double, Boolean)

Draws a cloud figure.

public void DrawCloud(PDFPen pen, PDFBrush brush, PDFPoint[] polygon, double radius, double extension, bool niceCorners)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the cloud outline.

brush PDFBrush
PDFBrush that determines the characteristics of the cloud fill.

polygon PDFPoint[]
The list of points that define the polygon cloud.

radius Double
The radius of the arcs that compose the cloud.

extension Double
Extension for cloud arcs.

niceCorners Boolean
If true then the cloud arcs are distributed evenly between 2 polygon points.

Remarks

The polygon points must be given in clockwise order.


DrawDonut(PDFPen, Double, Double, Double, Double, Double, Double, Double)

Draws a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.

public void DrawDonut(PDFPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle, double donutHeight)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the donut shape.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the donut shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the donut shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the donut shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the donut shape.

donutHeight Double
The height of the donut shape. If it is greater than half of the ellipse height then a pie shape will be drawn.


DrawDonut(PDFPen, Double, Double, Double, Double, Double, Double, Double, Double)

Draws a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.

public void DrawDonut(PDFPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle, double donutHeight, double rotation)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the donut shape.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the donut shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the donut shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the donut shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the donut shape.

donutHeight Double
The height of the donut shape. If it is greater than half of the ellipse height then a pie shape will be drawn.

rotation Double
Rotation angle of the bounding rectangle that defines the donut.


DrawDonut(PDFBrush, Double, Double, Double, Double, Double, Double, Double)

Fills the interior of a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.

public void DrawDonut(PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle, double donutHeight)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the donut shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the donut shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the donut shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the donut shape.

donutHeight Double
The height of the donut shape. If it is greater than half of the ellipse height then a pie shape will be drawn.


DrawDonut(PDFBrush, Double, Double, Double, Double, Double, Double, Double, Double)

Fills the interior of a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.

public void DrawDonut(PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle, double donutHeight, double rotation)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the donut shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the donut shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the donut shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the donut shape.

donutHeight Double
The height of the donut shape. If it is greater than half of the ellipse height then a pie shape will be drawn.

rotation Double
Rotation angle of the bounding rectangle that defines the donut.


DrawDonut(PDFPen, PDFBrush, Double, Double, Double, Double, Double, Double, Double)

Draws and fills the interior of a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.

public void DrawDonut(PDFPen pen, PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle, double donutHeight)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the donut shape.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the donut shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the donut shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the donut shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the donut shape.

donutHeight Double
The height of the donut shape. If it is greater than half of the ellipse height then a pie shape will be drawn.


DrawDonut(PDFPen, PDFBrush, Double, Double, Double, Double, Double, Double, Double, Double)

Draws and fills the interior of a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.

public void DrawDonut(PDFPen pen, PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle, double donutHeight, double rotation)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the donut shape.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the donut shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the donut shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the donut shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the donut shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the donut shape.

donutHeight Double
The height of the donut shape. If it is greater than half of the ellipse height then a pie shape will be drawn.

rotation Double
Rotation angle of the bounding rectangle that defines the donut.


DrawEllipse(PDFPen, Double, Double, Double, Double)

Draws an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width.

public void DrawEllipse(PDFPen pen, double x, double y, double width, double height)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the ellipse.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

width Double
Width of the bounding rectangle that defines the ellipse.

height Double
Height of the bounding rectangle that defines the ellipse.


DrawEllipse(PDFPen, Double, Double, Double, Double, Double)

Draws an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width.

public void DrawEllipse(PDFPen pen, double x, double y, double width, double height, double rotation)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the ellipse.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

width Double
Width of the bounding rectangle that defines the ellipse.

height Double
Height of the bounding rectangle that defines the ellipse.

rotation Double
Rotation angle of the bounding rectangle that defines the ellipse.


DrawEllipse(PDFBrush, Double, Double, Double, Double)

Fills the interior of an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width.

public void DrawEllipse(PDFBrush brush, double x, double y, double width, double height)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

width Double
Width of the bounding rectangle that defines the ellipse.

height Double
Height of the bounding rectangle that defines the ellipse.


DrawEllipse(PDFBrush, Double, Double, Double, Double, Double)

Fills the interior of an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width.

public void DrawEllipse(PDFBrush brush, double x, double y, double width, double height, double rotation)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

width Double
Width of the bounding rectangle that defines the ellipse.

height Double
Height of the bounding rectangle that defines the ellipse.

rotation Double
Rotation angle of the bounding rectangle that defines the ellipse.


DrawEllipse(PDFPen, PDFBrush, Double, Double, Double, Double)

Draws and fills the interior of an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width.

public void DrawEllipse(PDFPen pen, PDFBrush brush, double x, double y, double width, double height)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the ellipse.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

width Double
Width of the bounding rectangle that defines the ellipse.

height Double
Height of the bounding rectangle that defines the ellipse.


DrawEllipse(PDFPen, PDFBrush, Double, Double, Double, Double, Double)

Draws and fills the interior of an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width.

public void DrawEllipse(PDFPen pen, PDFBrush brush, double x, double y, double width, double height, double rotation)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the ellipse.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.

width Double
Width of the bounding rectangle that defines the ellipse.

height Double
Height of the bounding rectangle that defines the ellipse.

rotation Double
Rotation angle of the bounding rectangle that defines the ellipse.


DrawFormattedContent(PDFFormattedContent, Double, Double)

Draws the formatted content on the graphics surface at the specified position.

public void DrawFormattedContent(PDFFormattedContent formattedContent, double x, double y)

Parameters

formattedContent PDFFormattedContent
The formatted content.

x Double
X coordinate of the content left margin.

y Double
Y coordinate of the content top margin.


DrawFormattedContent(PDFFormattedContent, Double, Double, Double)

Draws the formatted content on the graphics surface at the specified position.

public void DrawFormattedContent(PDFFormattedContent formattedContent, double x, double y, double rotation)

Parameters

formattedContent PDFFormattedContent
The formatted content.

x Double
X coordinate of the content left margin.

y Double
Y coordinate of the content top margin.

rotation Double
Rotation angle for drawing the formatted content


DrawFormattedContent(PDFFormattedContent, Double, Double, Double, Double)

Draws the formatted content on the graphics surface in the specified box.

public void DrawFormattedContent(PDFFormattedContent formattedContent, double x, double y, double width, double height)

Parameters

formattedContent PDFFormattedContent
The formatted content.

x Double
X coordinate of the box left margin.

y Double
Y coordinate of the box top margin.

width Double
Box width

height Double
Box height


DrawFormattedContent(PDFFormattedContent, Double, Double, Double, Double, Double)

Draws the formatted content on the graphics surface in the specified box.

public void DrawFormattedContent(PDFFormattedContent formattedContent, double x, double y, double width, double height, double rotation)

Parameters

formattedContent PDFFormattedContent
The formatted content.

x Double
X coordinate of the box left margin.

y Double
Y coordinate of the box top margin.

width Double
Box width

height Double
Box height

rotation Double
Rotation angle.


DrawFormXObject(PDFFormXObject, Double, Double, Double, Double)

Draws the specified PDFFormXObject at the specified location and with the specified size.

public void DrawFormXObject(PDFFormXObject formXObject, double x, double y, double width, double height)

Parameters

formXObject PDFFormXObject
PDFFormXObject to draw.

x Double
The x-coordinate of the upper-left corner of the drawn form XObject.

y Double
The y-coordinate of the upper-left corner of the drawn form XObject.

width Double
Width of the drawn form XObject.

height Double
Height of the drawn form XObject.


DrawFormXObject(PDFFormXObject, Double, Double, Double, Double, Double)

Draws the specified PDFFormXObject at the specified location and with the specified size.

public void DrawFormXObject(PDFFormXObject formXObject, double x, double y, double width, double height, double rotation)

Parameters

formXObject PDFFormXObject
PDFFormXObject to draw.

x Double
The x-coordinate of the upper-left corner of the drawn form XObject.

y Double
The y-coordinate of the upper-left corner of the drawn form XObject.

width Double
Width of the drawn form XObject.

height Double
Height of the drawn form XObject.

rotation Double
Rotation angle of the drawn form XObject.


DrawFormXObject(PDFFormXObject, Double, Double, Double, Double, PDFFlipDirection)

Draws the specified PDFFormXObject at the specified location and with the specified size.

public void DrawFormXObject(PDFFormXObject formXObject, double x, double y, double width, double height, PDFFlipDirection flipDirection)

Parameters

formXObject PDFFormXObject
PDFFormXObject to draw.

x Double
The x-coordinate of the upper-left corner of the drawn form XObject.

y Double
The y-coordinate of the upper-left corner of the drawn form XObject.

width Double
Width of the drawn form XObject.

height Double
Height of the drawn form XObject.

flipDirection PDFFlipDirection
Direction for flipping the drawn form XObject.


DrawFormXObject(PDFFormXObject, Double, Double, Double, Double, Double, PDFFlipDirection)

Draws the specified PDFFormXObject at the specified location and with the specified size.

public void DrawFormXObject(PDFFormXObject formXObject, double x, double y, double width, double height, double rotation, PDFFlipDirection flipDirection)

Parameters

formXObject PDFFormXObject
PDFFormXObject to draw.

x Double
The x-coordinate of the upper-left corner of the drawn form XObject.

y Double
The y-coordinate of the upper-left corner of the drawn form XObject.

width Double
Width of the drawn form XObject.

height Double
Height of the drawn form XObject.

rotation Double
Rotation angle of the drawn form XObject.

flipDirection PDFFlipDirection
Direction for flipping the drawn form XObject.


DrawImage(PDFImage, Double, Double, Double, Double)

Draws the specified PDFImage at the specified location and with the specified size.

public PDFSize DrawImage(PDFImage image, double x, double y, double width, double height)

Parameters

image PDFImage
PDFImage to draw.

x Double
The x-coordinate of the upper-left corner of the drawn image.

y Double
The y-coordinate of the upper-left corner of the drawn image.

width Double
Width of the drawn image.

height Double
Height of the drawn image.

Returns

PDFSize
The size of the drawn image.

Remarks

If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the image is scaled automatically to fit the given area and the original aspect ratio is kept.


DrawImage(PDFImage, Double, Double, Double, Double, Double)

Draws the specified PDFImage at the specified location and with the specified size.

public PDFSize DrawImage(PDFImage image, double x, double y, double width, double height, double rotation)

Parameters

image PDFImage
PDFImage to draw.

x Double
The x-coordinate of the upper-left corner of the drawn image.

y Double
The y-coordinate of the upper-left corner of the drawn image.

width Double
Width of the drawn image.

height Double
Height of the drawn image.

rotation Double
Rotation angle of the drawn image.

Returns

PDFSize
The size of the drawn image.

Remarks

If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the image is scaled automatically to fit the given area and the original aspect ratio is kept.


DrawImage(PDFImage, Double, Double, Double, Double, Double, PDFFlipDirection)

Draws the specified PDFImage at the specified location and with the specified size.

public PDFSize DrawImage(PDFImage image, double x, double y, double width, double height, double rotation, PDFFlipDirection flipDirection)

Parameters

image PDFImage
PDFImage to draw.

x Double
The x-coordinate of the upper-left corner of the drawn image.

y Double
The y-coordinate of the upper-left corner of the drawn image.

width Double
Width of the drawn image.

height Double
Height of the drawn image.

rotation Double
Rotation angle of the drawn image.

flipDirection PDFFlipDirection
Direction for flipping the drawn image.

Returns

PDFSize
The size of the drawn image.

Remarks

If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the image is scaled automatically to fit the given area and the original aspect ratio is kept.


DrawLine(PDFPen, Double, Double, Double, Double)

Draws a line connecting the two points specified by the coordinate pairs.

public void DrawLine(PDFPen pen, double x1, double y1, double x2, double y2)

Parameters

pen PDFPen
PDFPen Pen that determines the color, width, and style of the line.

x1 Double
The x-coordinate of the first point.

y1 Double
The y-coordinate of the first point.

x2 Double
The x-coordinate of the second point.

y2 Double
The y-coordinate of the second point.


DrawLine(PDFPen, PDFPoint, PDFPoint)

Draws a line connecting two PDFPoint objects.

public void DrawLine(PDFPen pen, PDFPoint pt1, PDFPoint pt2)

Parameters

pen PDFPen
PDFPen Pen that determines the color, width, and style of the line.

pt1 PDFPoint
PDFPoint object that represents the first point to connect.

pt2 PDFPoint
PDFPoint object that represents the second point to connect.


DrawPath(PDFPen, PDFPath)

Draws a PDFPath.

public void DrawPath(PDFPen pen, PDFPath path)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the path.

path PDFPath
PDFPath to draw.


DrawPath(PDFBrush, PDFPath)

Fills a PDFPath.

public void DrawPath(PDFBrush brush, PDFPath path)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

path PDFPath
PDFPath to fill.


DrawPath(PDFBrush, PDFPath, PDFFillMode)

Fills a PDFPath.

public void DrawPath(PDFBrush brush, PDFPath path, PDFFillMode fillMode)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

path PDFPath
PDFPath to fill.

fillMode PDFFillMode
Path fill mode.


DrawPath(PDFPen, PDFBrush, PDFPath)

Draws and fills a PDFPath.

public void DrawPath(PDFPen pen, PDFBrush brush, PDFPath path)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the path.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

path PDFPath
PDFPath to draw and fill.


DrawPath(PDFPen, PDFBrush, PDFPath, PDFFillMode)

Draws and fills a PDFPath.

public void DrawPath(PDFPen pen, PDFBrush brush, PDFPath path, PDFFillMode fillMode)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the path.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

path PDFPath
PDFPath to draw and fill.

fillMode PDFFillMode
Path fill mode.


DrawPie(PDFPen, Double, Double, Double, Double, Double, Double)

Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.

public void DrawPie(PDFPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the pie shape.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.


DrawPie(PDFPen, Double, Double, Double, Double, Double, Double, Double)

Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.

public void DrawPie(PDFPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle, double rotation)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the pie shape.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.

rotation Double
Rotation angle of the bounding rectangle that defines the pie.


DrawPie(PDFBrush, Double, Double, Double, Double, Double, Double)

Fills the interior of a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.

public void DrawPie(PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.


DrawPie(PDFBrush, Double, Double, Double, Double, Double, Double, Double)

Fills the interior of a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.

public void DrawPie(PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle, double rotation)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.

rotation Double
Rotation angle of the bounding rectangle that defines the pie.


DrawPie(PDFPen, PDFBrush, Double, Double, Double, Double, Double, Double)

Draws and fills the interior of a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.

public void DrawPie(PDFPen pen, PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the pie shape.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.


DrawPie(PDFPen, PDFBrush, Double, Double, Double, Double, Double, Double, Double)

Draws and fills the interior of a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.

public void DrawPie(PDFPen pen, PDFBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle, double rotation)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the pie shape.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

y Double
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.

width Double
Width of the bounding rectangle that defines the ellipse from which the pie shape comes.

height Double
Height of the bounding rectangle that defines the ellipse from which the pie shape comes.

startAngle Double
Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.

sweepAngle Double
Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.

rotation Double
Rotation angle of the bounding rectangle that defines the pie.


DrawRectangle(PDFPen, Double, Double, Double, Double)

Draws a rectangle specified by a coordinate pair, a width, and a height.

public void DrawRectangle(PDFPen pen, double x, double y, double width, double height)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the rectangle.

x Double
The x-coordinate of the upper-left corner of the rectangle to draw.

y Double
The y-coordinate of the upper-left corner of the rectangle to draw.

width Double
Width of the rectangle to draw.

height Double
Height of the rectangle to draw.


DrawRectangle(PDFPen, Double, Double, Double, Double, Double)

Draws a rectangle specified by a coordinate pair, a width, and a height.

public void DrawRectangle(PDFPen pen, double x, double y, double width, double height, double rotation)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the rectangle.

x Double
The x-coordinate of the upper-left corner of the rectangle to draw.

y Double
The y-coordinate of the upper-left corner of the rectangle to draw.

width Double
Width of the rectangle to draw.

height Double
Height of the rectangle to draw.

rotation Double
Rotation of the rectangle around the upper-left corner.


DrawRectangle(PDFBrush, Double, Double, Double, Double)

Fills the interior of a rectangle specified by a coordinate pair, a width, and a height.

public void DrawRectangle(PDFBrush brush, double x, double y, double width, double height)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the rectangle to draw.

y Double
The y-coordinate of the upper-left corner of the rectangle to draw.

width Double
Width of the rectangle to draw.

height Double
Height of the rectangle to draw.


DrawRectangle(PDFBrush, Double, Double, Double, Double, Double)

Fills the interior of a rectangle specified by a coordinate pair, a width, and a height.

public void DrawRectangle(PDFBrush brush, double x, double y, double width, double height, double rotation)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the rectangle to draw.

y Double
The y-coordinate of the upper-left corner of the rectangle to draw.

width Double
Width of the rectangle to draw.

height Double
Height of the rectangle to draw.

rotation Double
Rotation of the rectangle around the upper-left corner.


DrawRectangle(PDFPen, PDFBrush, Double, Double, Double, Double)

Draws and fills the interior of a rectangle specified by a coordinate pair, a width, and a height.

public void DrawRectangle(PDFPen pen, PDFBrush brush, double x, double y, double width, double height)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the rectangle.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the rectangle to draw.

y Double
The y-coordinate of the upper-left corner of the rectangle to draw.

width Double
Width of the rectangle to draw.

height Double
Height of the rectangle to draw.


DrawRectangle(PDFPen, PDFBrush, Double, Double, Double, Double, Double)

Draws and fills the interior of a rectangle specified by a coordinate pair, a width, and a height.

public void DrawRectangle(PDFPen pen, PDFBrush brush, double x, double y, double width, double height, double rotation)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the rectangle.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the rectangle to draw.

y Double
The y-coordinate of the upper-left corner of the rectangle to draw.

width Double
Width of the rectangle to draw.

height Double
Height of the rectangle to draw.

rotation Double
Rotation of the rectangle around the upper-left corner.


DrawRoundRectangle(PDFPen, Double, Double, Double, Double, Double, Double)

Draws a rounded rectangle specified by a coordinate pair, a width, and a height.

public void DrawRoundRectangle(PDFPen pen, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the rectangle.

x Double
The x-coordinate of the upper-left corner of the rectangle to draw.

y Double
The y-coordinate of the upper-left corner of the rectangle to draw.

width Double
Width of the rectangle to draw.

height Double
Height of the rectangle to draw.

ellipseWidth Double
Width of the ellipse that defines the rounded corners.

ellipseHeight Double
Height of the ellipse that defines the rounded corners.


DrawRoundRectangle(PDFPen, Double, Double, Double, Double, Double, Double, Double)

Draws a rounded rectangle specified by a coordinate pair, a width, and a height.

public void DrawRoundRectangle(PDFPen pen, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight, double rotation)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the rectangle.

x Double
The x-coordinate of the upper-left corner of the rectangle to draw.

y Double
The y-coordinate of the upper-left corner of the rectangle to draw.

width Double
Width of the rectangle to draw.

height Double
Height of the rectangle to draw.

ellipseWidth Double
Width of the ellipse that defines the rounded corners.

ellipseHeight Double
Height of the ellipse that defines the rounded corners.

rotation Double
Rotation of the rectangle around the upper-left corner.


DrawRoundRectangle(PDFBrush, Double, Double, Double, Double, Double, Double)

Fills the interior of rounded rectangle specified by a coordinate pair, a width, and a height.

public void DrawRoundRectangle(PDFBrush brush, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the rectangle to draw.

y Double
The y-coordinate of the upper-left corner of the rectangle to draw.

width Double
Width of the rectangle to draw.

height Double
Height of the rectangle to draw.

ellipseWidth Double
Width of the ellipse that defines the rounded corners.

ellipseHeight Double
Height of the ellipse that defines the rounded corners.


DrawRoundRectangle(PDFBrush, Double, Double, Double, Double, Double, Double, Double)

Fills the interior of rounded rectangle specified by a coordinate pair, a width, and a height.

public void DrawRoundRectangle(PDFBrush brush, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight, double rotation)

Parameters

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the rectangle to draw.

y Double
The y-coordinate of the upper-left corner of the rectangle to draw.

width Double
Width of the rectangle to draw.

height Double
Height of the rectangle to draw.

ellipseWidth Double
Width of the ellipse that defines the rounded corners.

ellipseHeight Double
Height of the ellipse that defines the rounded corners.

rotation Double
Rotation of the rectangle around the upper-left corner.


DrawRoundRectangle(PDFPen, PDFBrush, Double, Double, Double, Double, Double, Double)

Draws and fills the interior of a rounded rectangle specified by a coordinate pair, a width, and a height.

public void DrawRoundRectangle(PDFPen pen, PDFBrush brush, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the rectangle.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the rectangle to draw.

y Double
The y-coordinate of the upper-left corner of the rectangle to draw.

width Double
Width of the rectangle to draw.

height Double
Height of the rectangle to draw.

ellipseWidth Double
Width of the ellipse that defines the rounded corners.

ellipseHeight Double
Height of the ellipse that defines the rounded corners.


DrawRoundRectangle(PDFPen, PDFBrush, Double, Double, Double, Double, Double, Double, Double)

Draws and fills the interior of rounded rectangle specified by a coordinate pair, a width, and a height.

public void DrawRoundRectangle(PDFPen pen, PDFBrush brush, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight, double rotation)

Parameters

pen PDFPen
PDFPen that determines the color, width, and style of the rectangle.

brush PDFBrush
PDFBrush that determines the characteristics of the fill.

x Double
The x-coordinate of the upper-left corner of the rectangle to draw.

y Double
The y-coordinate of the upper-left corner of the rectangle to draw.

width Double
Width of the rectangle to draw.

height Double
Height of the rectangle to draw.

ellipseWidth Double
Width of the ellipse that defines the rounded corners.

ellipseHeight Double
Height of the ellipse that defines the rounded corners.

rotation Double
Rotation of the rectangle around the upper-left corner.


DrawShading(PDFShading)

Draws a PDF shading.

public void DrawShading(PDFShading shading)

Parameters

shading PDFShading
The shading to draw on the PDF page.

Remarks

The position of the shading is defined on the PDFShading object.


DrawStencilMask(PDFStencilMask, PDFBrush, Double, Double, Double, Double)

Draws the specified PDFStencilMask at the specified location and with the specified size.

public PDFSize DrawStencilMask(PDFStencilMask stencilMask, PDFBrush brush, double x, double y, double width, double height)

Parameters

stencilMask PDFStencilMask
PDFStencilMask to draw.

brush PDFBrush
PDFBrush that defines the characteristics of the stencil mask fill.

x Double
The x-coordinate of the upper-left corner of the drawn stencil mask.

y Double
The y-coordinate of the upper-left corner of the drawn stencil mask.

width Double
Width of the drawn stencil mask.

height Double
Height of the drawn stencil mask.

Returns

PDFSize
The size of the drawn stencil mask.

Remarks

A stencil mask is a B/W image where the 1 pixels are left transparent and 0 pixels are filled with the brush.
If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the stencil mask is scaled automatically to fit the given area and the original aspect ratio is kept.


DrawStencilMask(PDFStencilMask, PDFBrush, Double, Double, Double, Double, Double)

Draws the specified PDFStencilMask at the specified location and with the specified size.

public PDFSize DrawStencilMask(PDFStencilMask stencilMask, PDFBrush brush, double x, double y, double width, double height, double rotation)

Parameters

stencilMask PDFStencilMask
PDFStencilMask to draw.

brush PDFBrush
PDFBrush that defines the characteristics of the stencil mask fill.

x Double
The x-coordinate of the upper-left corner of the drawn stencil mask.

y Double
The y-coordinate of the upper-left corner of the drawn stencil mask.

width Double
Width of the drawn stencil mask.

height Double
Height of the drawn stencil mask.

rotation Double
Rotation angle of the drawn stencil mask.

Returns

PDFSize
The size of the drawn stencil mask.

Remarks

A stencil mask is a B/W image where the 1 pixels are left transparent and 0 pixels are filled with the brush.
If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the stencil mask is scaled automatically to fit the given area and the original aspect ratio is kept.


DrawStencilMask(PDFStencilMask, PDFBrush, Double, Double, Double, Double, Double, PDFFlipDirection)

Draws the specified PDFStencilMask at the specified location and with the specified size.

public PDFSize DrawStencilMask(PDFStencilMask stencilMask, PDFBrush brush, double x, double y, double width, double height, double rotation, PDFFlipDirection flipDirection)

Parameters

stencilMask PDFStencilMask
PDFStencilMask to draw.

brush PDFBrush
PDFBrush that defines the characteristics of the stencil mask fill.

x Double
The x-coordinate of the upper-left corner of the drawn stencil mask.

y Double
The y-coordinate of the upper-left corner of the drawn stencil mask.

width Double
Width of the drawn stencil mask.

height Double
Height of the drawn stencil mask.

rotation Double
Rotation angle of the drawn stencil mask.

flipDirection PDFFlipDirection
Direction for flipping the drawn stencil mask.

Returns

PDFSize
The size of the drawn stencil mask.

Remarks

A stencil mask is a B/W image where the 1 pixels are left transparent and 0 pixels are filled with the brush.
If width is zero or negative then width is automatically computed in order to keep the original aspect ratio. If height is zero or negative then height is automatically computed in order to keep the original aspect ratio. If both width and height are negative then the stencil mask is scaled automatically to fit the given area and the original aspect ratio is kept.


DrawString(String, PDFFont, PDFBrush, Double, Double)

Draws the specified text string at the specified location with the specified PDFBrush and PDFFont objects.

public void DrawString(string s, PDFFont font, PDFBrush brush, double x, double y)

Parameters

s String
String to draw.

font PDFFont
PDFFont that defines the text format of the string.

brush PDFBrush
PDFBrush that determines the color and texture of the drawn text.

x Double
The x-coordinate of the upper-left corner of the drawn text.

y Double
The y-coordinate of the upper-left corner of the drawn text.


DrawString(String, PDFFont, PDFBrush, Double, Double, PDFStructureElement)

Draws the specified text string at the specified location with the specified PDFBrush and PDFFont objects.

public void DrawString(string s, PDFFont font, PDFBrush brush, double x, double y, PDFStructureElement structureElement)

Parameters

s String
String to draw.

font PDFFont
PDFFont that defines the text format of the string.

brush PDFBrush
PDFBrush that determines the color and texture of the drawn text.

x Double
The x-coordinate of the upper-left corner of the drawn text.

y Double
The y-coordinate of the upper-left corner of the drawn text.

structureElement PDFStructureElement
The structure element that is associated with this piece of content.


DrawString(String, PDFFont, PDFBrush, PDFDisplayRectangle)

Draws the specified text string in the specified rectangle with the specified PDFBrush and PDFFont objects.

public void DrawString(string s, PDFFont font, PDFBrush brush, PDFDisplayRectangle rectangle)

Parameters

s String
String to draw.

font PDFFont
PDFFont that defines the text format of the string.

brush PDFBrush
PDFBrush that determines the color and texture of the drawn text.

rectangle PDFDisplayRectangle
PDFDisplayRectangle object that specifies the location of the drawn text.


DrawString(String, PDFFont, PDFBrush, PDFDisplayRectangle, PDFStructureElement)

Draws the specified text string in the specified rectangle with the specified PDFBrush and PDFFont objects.

public void DrawString(string s, PDFFont font, PDFBrush brush, PDFDisplayRectangle rectangle, PDFStructureElement structureElement)

Parameters

s String
String to draw.

font PDFFont
PDFFont that defines the text format of the string.

brush PDFBrush
PDFBrush that determines the color and texture of the drawn text.

rectangle PDFDisplayRectangle
PDFDisplayRectangle object that specifies the location of the drawn text.

structureElement PDFStructureElement
The structure element that is associated with this piece of content.


DrawString(String, PDFStringAppearanceOptions, PDFStringLayoutOptions)

Draws the specified text string with the specified appearance and layout options.

public void DrawString(string s, PDFStringAppearanceOptions stringAppearanceOptions, PDFStringLayoutOptions stringLayoutOptions)

Parameters

s String
String to draw.

stringAppearanceOptions PDFStringAppearanceOptions
Options that determine the string visual appearance.

stringLayoutOptions PDFStringLayoutOptions
Options that determine the text layout.


DrawString(String, PDFStringAppearanceOptions, PDFStringLayoutOptions, PDFStructureElement)

Draws the specified text string with the specified appearance and layout options.

public void DrawString(string s, PDFStringAppearanceOptions stringAppearanceOptions, PDFStringLayoutOptions stringLayoutOptions, PDFStructureElement structureElement)

Parameters

s String
String to draw.

stringAppearanceOptions PDFStringAppearanceOptions
Options that determine the string visual appearance.

stringLayoutOptions PDFStringLayoutOptions
Options that determine the text layout.

structureElement PDFStructureElement
The structure element that is associated with this piece of content.


DrawText(String, PDFFont, PDFBrush, Double, Double)

Caution

Use DrawString instead


Draws a line of text specified by a string and a pair of coordinates.

public void DrawText(string text, PDFFont font, PDFBrush brush, double x, double y)

Parameters

text String
the string to be drawn.

font PDFFont
a PDFFont object used to represent the string.

brush PDFBrush
a PDFBrush object used to fill the interior of the string.

x Double
the x coordinate of the top left corner of the drawn text.

y Double
the y coordinate of the top left corner of the drawn text.


DrawText(String, PDFFont, PDFPen, PDFBrush, Double, Double)

Caution

Use DrawString instead


Draws a line of text specified by a string and a pair of coordinates.

public void DrawText(string text, PDFFont font, PDFPen pen, PDFBrush brush, double x, double y)

Parameters

text String
the string to be drawn.

font PDFFont
a PDFFont object used to represent the string.

pen PDFPen
a PDFPen object used to draw the border of the string.

brush PDFBrush
a PDFBrush object used to fill the interior of the string.

x Double
the x coordinate of the top left corner of the drawn text.

y Double
the y coordinate of the top left corner of the drawn text.


DrawText(String, PDFFont, PDFBrush, Double, Double, Double)

Caution

Use DrawString instead


Draws a line of text specified by a string and a pair of coordinates.

public void DrawText(string text, PDFFont font, PDFBrush brush, double x, double y, double orientation)

Parameters

text String
the string to be drawn.

font PDFFont
a PDFFont descendant object used to represent the string.

brush PDFBrush
a PDFBrush object used to fill the interior of the string.

x Double
the x coordinate of the top left corner of the drawn text.

y Double
the y coordinate of the top left corner of the drawn text.

orientation Double
the orientation of the text.

Remarks

The text is drawn rotated around the top left corner with a number of degrees specified by the orientation parameter.


DrawText(String, PDFFont, PDFPen, PDFBrush, Double, Double, Double)

Caution

Use DrawString instead


Draws a line of text specified by a string and a pair of coordinates.

public void DrawText(string text, PDFFont font, PDFPen pen, PDFBrush brush, double x, double y, double orientation)

Parameters

text String
the string to be drawn.

font PDFFont
a PDFFont descendant object used to represent the string.

pen PDFPen
a PDFPen object used to draw the border of the string.

brush PDFBrush
a PDFBrush object used to fill the interior of the string.

x Double
the x coordinate of the top left corner of the drawn text.

y Double
the y coordinate of the top left corner of the drawn text.

orientation Double
the orientation of the text.

Remarks

The text is drawn rotated around the top left corner with a number of degrees specified by the orientation parameter.


DrawText(String, PDFFont, PDFBrush, Double, Double, Double, PDFTextAlign)

Caution

Use DrawString instead


Draws a line of text specified by a string and a pair of coordinates.

public void DrawText(string text, PDFFont font, PDFBrush brush, double x, double y, double orientation, PDFTextAlign align)

Parameters

text String
the string to be drawn.

font PDFFont
a PDFFont descendant object used to represent the string.

brush PDFBrush
a PDFBrush object used to fill the interior of the string.

x Double
the x coordinate of the printing point.

y Double
the y coordinate of the printing point.

orientation Double
the orientation of the text.

align PDFTextAlign
a PDFTextAlign enumeration member specifying the aligment of the text.

Remarks

The text is drawn rotated around the printing point with a number of degrees specified by the orientation parameter. Also, the text is drawn aligned relative to the printing point.


DrawText(String, PDFFont, PDFPen, PDFBrush, Double, Double, Double, PDFTextAlign)

Caution

Use DrawString instead


Draws a line of text specified by a string and a pair of coordinates.

public void DrawText(string text, PDFFont font, PDFPen pen, PDFBrush brush, double x, double y, double orientation, PDFTextAlign align)

Parameters

text String
the string to be drawn.

font PDFFont
a PDFFont descendant object used to represent the string.

pen PDFPen
a PDFPen object used to draw the border of the string.

brush PDFBrush
a PDFBrush object used to fill the interior of the string.

x Double
the x coordinate of the printing point.

y Double
the y coordinate of the printing point.

orientation Double
the orientation of the text.

align PDFTextAlign
a PDFTextAlign enumeration member specifying the aligment of the text.

Remarks

The text is drawn rotated around the printing point with a number of degrees specified by the orientation parameter. Also, the text is drawn aligned relative to the printing point.


DrawTextBox(String, PDFFont, PDFPen, PDFBrush, Double, Double, Double, Double)

Caution

Use DrawString instead


Draws a text specified by a string, a pair of coordinates, a width and a height.

public void DrawTextBox(string text, PDFFont font, PDFPen pen, PDFBrush brush, double left, double top, double width, double height)

Parameters

text String
the string to be drawn.

font PDFFont
a PDFFont object used to represent the string.

pen PDFPen
a PDFPen object used to draw the border of the string.

brush PDFBrush
a PDFBrush object used to fill the interior of the string.

left Double
the x coordinate of the top left corner of the text box.

top Double
the y coordinate of the top left corner of the text box.

width Double
the width of the text box.

height Double
the height of the text box.

Remarks

The text is automatically wrapped to fit the width of the text box.


DrawTextBox(String, PDFFont, PDFPen, PDFBrush, Double, Double, Double, Double, Double)

Caution

Use DrawString instead


Draws a text specified by a string, a pair of coordinates, a width and a height.

public void DrawTextBox(string text, PDFFont font, PDFPen pen, PDFBrush brush, double left, double top, double width, double height, double orientation)

Parameters

text String
the string to be drawn.

font PDFFont
a PDFFont object used to represent the string.

pen PDFPen
a PDFPen object used to draw the border of the string.

brush PDFBrush
a PDFBrush object used to fill the interior of the string.

left Double
the x coordinate of the top left corner of the text box.

top Double
the y coordinate of the top left corner of the text box.

width Double
the width of the text box.

height Double
the height of the text box.

orientation Double
the orientation of the text box.

Remarks

The text is automatically wrapped to fit the width of the text box. The text box is rotated around the top left corner with a number of degrees specified by the orientation parameter.


DrawTextBox(String, PDFFont, PDFPen, PDFBrush, Double, Double, Double, Double, Double, PDFTextAlign)

Caution

Use DrawString instead


Draws a text specified by a string, a pair of coordinates, a width and a height.

public void DrawTextBox(string text, PDFFont font, PDFPen pen, PDFBrush brush, double left, double top, double width, double height, double orientation, PDFTextAlign align)

Parameters

text String
the string to be drawn.

font PDFFont
a PDFFont object used to represent the string.

pen PDFPen
a PDFPen object used to draw the border of the string.

brush PDFBrush
a PDFBrush object used to fill the interior of the string.

left Double
the x coordinate of the top left corner of the text box.

top Double
the y coordinate of the top left corner of the text box.

width Double
the width of the text box.

height Double
the height of the text box.

orientation Double
the orientation of the text box.

align PDFTextAlign
a PDFTextAlign enumeration member specifying how the text is aligned inside the text box.

Remarks

The text is automatically wrapped to fit the width of the text box. The text box is rotated around the top left corner with a number of degrees specified by the orientation parameter.


DrawTextBox(String, PDFFont, PDFPen, PDFBrush, Double, Double, Double, Double, PDFStringLayoutOptions)

Caution

Use DrawString instead


Draws a text specified by a string, a pair of coordinates, a width and a height.

public void DrawTextBox(string text, PDFFont font, PDFPen pen, PDFBrush brush, double left, double top, double width, double height, PDFStringLayoutOptions textFormatOptions)

Parameters

text String
the string to be drawn.

font PDFFont
a PDFFont object used to represent the string.

pen PDFPen
a PDFPen object used to draw the border of the string.

brush PDFBrush
a PDFBrush object used to fill the interior of the string.

left Double
the x coordinate of the top left corner of the text box.

top Double
the y coordinate of the top left corner of the text box.

width Double
the width of the text box.

height Double
the height of the text box.

textFormatOptions PDFStringLayoutOptions
A PDFStringLayoutOptions object specifying how the text within the text box should be formatted.

Remarks

The text is automatically wrapped to fit the width of the text box. The formatting of the text is controlled by the textFormatOptions parameter.


EndMarkedContent()

Ends a marked content sequence.

public void EndMarkedContent()

EndStructureElement()

Ends a marked content sequence associated with a PDFStructureElement object.

public void EndStructureElement()

MultiplyTransform(Double, Double, Double, Double, Double, Double)

Multiplies the current transformation of this graphics and specified the matrix.

public void MultiplyTransform(double m11, double m12, double m21, double m22, double tx, double ty)

Parameters

m11 Double
The m11 component of the matrix.

m12 Double
The m12 component of the matrix.

m21 Double
The m21 component of the matrix.

m22 Double
The m22 component of the matrix.

tx Double
The x-translation component of the matrix.

ty Double
The y-translation component of the matrix.


RestoreGraphicsState()

Restores the current state of this graphics.

public void RestoreGraphicsState()

RotateTransform(Double)

Applies the specified rotation to the transformation matrix of this graphics.

public void RotateTransform(double rotate)

Parameters

rotate Double
Angle of rotation in degrees.


SaveGraphicsState()

Saves the current state of this graphics

public void SaveGraphicsState()

ScaleTransform(Double, Double)

Applies the specified scaling operation to the transformation matrix of this graphics by prepending it to the object's transformation matrix.

public void ScaleTransform(double sx, double sy)

Parameters

sx Double
Scale factor in the x direction.

sy Double
Scale factor in the y direction.


SetClip(PDFPath)

Sets the clipping region of this graphics to the specified PDFPath.

public void SetClip(PDFPath path)

Parameters

path PDFPath
PDFPath that represents the new clip region.

Remarks

The actual clipping path is the intersection of the previous clipping path with this new clipping path. It is recommended to save the graphics state (see PDFCanvas.SaveGraphicsState() method) before setting a clipping path and restore the graphics state (see PDFCanvas.RestoreGraphicsState() method) after the clipping path is no longer needed.


SetClip(PDFPath, PDFFillMode)

Sets the clipping region of this graphics to the specified PDFPath.

public void SetClip(PDFPath path, PDFFillMode fillMode)

Parameters

path PDFPath
PDFPath that represents the new clip region.

fillMode PDFFillMode
Path fill mode.

Remarks

The actual clipping path is the intersection of the previous clipping path with this new clipping path. It is recommended to save the graphics state (see PDFCanvas.SaveGraphicsState() method) before setting a clipping path and restore the graphics state (see PDFCanvas.RestoreGraphicsState() method) after the clipping path is no longer needed.


SetExtendedGraphicState(PDFExtendedGraphicState)

Sets a new graphics state in this graphics object.

public void SetExtendedGraphicState(PDFExtendedGraphicState extendedGraphicState)

Parameters

extendedGraphicState PDFExtendedGraphicState
The new graphics state.


TranslateTransform(Double, Double)

Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this graphics.

public void TranslateTransform(double tx, double ty)

Parameters

tx Double
The x-coordinate of the translation.

ty Double
The y-coordinate of the translation.