Skip to main content
.NET Framework 4.5.2+

PdfGraphics Methods

Allows you to draw graphics content on a PDF page.
Name Description
AddFormField(PdfGraphicsAcroFormField) Adds an interactive form field as graphics content.
AddLinkToPage(RectangleF, Int32, Single, Single, Single) Adds a link that refers to the document page with the specified number. Allows you to set the page point positioned at the top left corner of the document window, and zoom factor.
AddLinkToPage(RectangleF, Int32, Single, Single) Adds a link that refers to the document page with the specified number. Allows you to set a page point positioned at the top left corner of the document window.
AddLinkToPage(RectangleF, Int32, Single) Adds a link that refers to the document page with the specified number and zoom factor.
AddLinkToPage(RectangleF, Int32) Adds a link that refers to the document page with the specified number.
AddLinkToUri(RectangleF, Uri) Adds a link to a URI at the specified page rectangle.
AddToPageBackground(PdfPage, Single, Single) Adds graphics to a PDF page background with the specified horizontal and vertical resolutions.
AddToPageBackground(PdfPage) Adds graphics to a PDF page background.
AddToPageForeground(PdfPage, Single, Single) Adds graphics to a PDF page foreground with the specified horizontal and vertical resolutions.
AddToPageForeground(PdfPage) Adds graphics to a PDF page foreground.
ClearFormFields() Clears all interactive form fields that were previously added to PDF graphics.
DrawBezier(Pen, PointF, PointF, PointF, PointF) Draws a Bezier curve specified by four points (in the world coordinate system).
DrawBeziers(Pen, PointF[]) Draws a series of Bezier curves by points from the specified array.
DrawEllipse(Pen, RectangleF) Draws an ellipse in the specified page rectangle.
DrawImage(Byte[], PointF) Draws the specified image data at the specified point.
DrawImage(Byte[], RectangleF) Draws an image data in the specified page rectangle. The image is scaled to fit the rectangle.
DrawImage(Image, PointF) Draws the specified image in its original size at the specified page point.
DrawImage(Image, RectangleF, RectangleF, GraphicsUnit) Draws the specified image part in a page rectangle.
DrawImage(Image, RectangleF) Draws an image in the specified page rectangle. The image is scaled to fit this rectangle.
DrawImage(Stream, PointF) Draws an image from a stream at the specified page point.
DrawImage(Stream, RectangleF) Draws an image from a stream in the specified page rectangle. The image is scaled to fit the rectangle.
DrawLine(Pen, Single, Single, Single, Single) Draws a line that connects two points with specified coordinates.
DrawLines(Pen, PointF[]) Draws a series of lines that connect points from the specified array.
DrawPageContent(PdfPage) Draws the specified page content.
DrawPath(Pen, GraphicsPath) Draws the specified path on a page.
DrawPolygon(Pen, PointF[]) Draws a polygon by points from the specified array.
DrawRectangle(Pen, RectangleF) Draws a rectangle in the specified page area.
DrawString(String, Font, SolidBrush, PointF, PdfStringFormat) Draws text at the specified point. Allows you to specify brush, font, and string parameters.
DrawString(String, Font, SolidBrush, PointF) Draws text with the specified brush and font parameters at the specified page point.
DrawString(String, Font, SolidBrush, RectangleF, PdfStringFormat) Draws text in the specified page rectangle. Allows you to specify brush, font, and string parameters.
DrawString(String, Font, SolidBrush, RectangleF) Draws text with the specified brush and font parameters in the specified page rectangle.
DrawString(String, Font, SolidBrush, Single, Single, PdfStringFormat) Draws text at the specified page point. Allows you to specify brush, font, and string parameters.
DrawString(String, Font, SolidBrush, Single, Single) Draws text with the specified brush and font parameters at the specified point on a page.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
FillEllipse(Brush, RectangleF) Fills the interior of an ellipse located in the specified page rectangle.
FillPath(Brush, GraphicsPath) Fills the interior of the specified path.
FillPolygon(Brush, PointF[]) Fills the interior of a polygon specified by array points.
FillRectangle(Brush, RectangleF) Fills the interior of a rectangle located in the specified page area.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
IntersectClip(RectangleF) Assigns the clip region of the PdfGraphics object to the intersection of the current clip region and the specified page region.
MeasureString(String, Font, PdfStringFormat, Single, Single) Measures the specified string when drawn with the specified font and format parameters, horizontal and vertical resolutions.
MeasureString(String, Font, PdfStringFormat) Measures the specified string when drawn with the specified font and text formatting parameters.
MeasureString(String, Font, SizeF, PdfStringFormat, Single, Single, out Int32, out Int32) Measures a string when it is drawn with the specific font and text formatting settings.
MeasureString(String, Font, SizeF, PdfStringFormat, Single, Single) Measures the specified string when drawn with specified font and text formatting parameters. Allows you to specify text layout size, and horizontal and vertical resolutions.
MeasureString(String, Font, SizeF, PdfStringFormat) Measures the specified string when drawn with the specified font, text layout size, and format.
MeasureString(String, Font, SizeF) Measures the specified string when drawn with the specified font settings.
MeasureString(String, Font) Measures the specified string when drawn with specified font parameters.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RestoreGraphicsState() Restores the saved graphics state.
RotateTransform(Single) Rotates the coordinate system clockwise to the specified angle relative to its origin.
SaveGraphicsState() Saves the current graphics state to the stack.
ScaleTransform(Single, Single) Scales the coordinate system by the specified scale factor.
ToString() Returns a string that represents the current object. Inherited from Object.
TranslateTransform(Single, Single) Translates the coordinate system origin to the specified point.
See Also