Skip to content

PdfGraphics Class

Definition

Namespace: Xfinium.Pdf.Graphics

Defines a graphic surface.

C#
public class PdfGraphics : Object

Inheritance: Object → PdfGraphics

Methods

Name Description
BeginArtifactMarkedContent Begins an artifact marked content sequence.
BeginMarkedContent Begins marked content sequence.
BeginStructureElement Begins a marked content sequence associated with a PdfStructureElement object.
CompressAndClose Compresses the graphic content and closes the graphics surface.
DrawArc Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.
DrawBarcode Draws a barcode at the specified position.
DrawBezier Draws a Bézier spline specified by four PdfPoint objects.
DrawChord 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.
DrawCloud Draws a cloud figure.
DrawDonut Draws a donut shape defined by an ellipse specified by a coordinate pair, a width, a height, two radial lines and a height.
DrawEllipse Draws an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width.
DrawFormattedContent Draws the formatted content on the graphics surface at the specified position.
DrawFormXObject Draws the specified PdfFormXObject at the specified location and with the specified size.
DrawImage Draws the specified PdfImage at the specified location and with the specified size.
DrawLine Draws a line connecting the two points specified by the coordinate pairs.
DrawPath Draws a PdfPath.
DrawPie Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
DrawRectangle Draws a rectangle specified by a coordinate pair, a width, and a height.
DrawRoundRectangle Draws a rounded rectangle specified by a coordinate pair, a width, and a height.
DrawShading Draws a PDF shading.
DrawStencilMask Draws the specified PdfStencilMask at the specified location and with the specified size.
DrawString Draws the specified text string at the specified location with the specified PdfBrush and PdfFont objects.
EndMarkedContent Ends a marked content sequence.
EndStructureElement Ends a marked content sequence associated with a PdfStructureElement object.
MultiplyTransform Multiplies the current transformation of this graphics and specified the matrix.
RestoreGraphicsState Restores the current state of this graphics.
RotateTransform Applies the specified rotation to the transformation matrix of this graphics.
SaveGraphicsState Saves the current state of this graphics
ScaleTransform Applies the specified scaling operation to the transformation matrix of this graphics by prepending it to the object's transformation matrix.
SetClip Sets the clipping region of this graphics to the specified PdfPath.
SetExtendedGraphicState Sets a new graphics state in this graphics object.
TranslateTransform Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this graphics.