Skip to main content

PdfGraphics Members

Allows you to draw graphics content on a PDF page.

Fields

Name Description
DefaultDpi The default DPI of a page that is the default size to display text and other content on the page.

Properties

Name Description
ConvertImagesToJpeg Specifies whether to convert bitmap images into JPEG to reduce the size of the resulting PDF file.
JpegImageQuality Gets or sets the quality of JPEG images in the resulting PDF file.
TextOrigin Specifies how to interpret a point passed to the PdfGraphics.DrawString method as a parameter.
UseKerning Gets or sets a value which indicates whether to use kerning when drawing characters.

Methods

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(DXPen, PointF, PointF, PointF, PointF) Draws a Bezier curve specified by four points (in the world coordinate system).
DrawBezier(Pen, PointF, PointF, PointF, PointF) Draws a Bezier curve specified by four points (in the world coordinate system).
DrawBeziers(DXPen, 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(DXPen, RectangleF) Draws an ellipse in the specified page rectangle.
DrawEllipse(Pen, RectangleF) Draws an ellipse in the specified page rectangle.
DrawImage(DXImage, PointF) Draws the specified image in its original size at the specified page point.
DrawImage(DXImage, RectangleF, RectangleF, DXGraphicsUnit) Draws the specified image part in a page rectangle.
DrawImage(DXImage, RectangleF) Draws an image in the specified page rectangle. The image is scaled to fit this 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, RectangleF, RectangleF, GraphicsUnit) Draws the specified image part in a page 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(DXPen, Single, Single, Single, Single) Draws a line that connects two points with specified coordinates.
DrawLine(Pen, Single, Single, Single, Single) Draws a line that connects two points with specified coordinates.
DrawLines(DXPen, PointF[]) Draws a series of lines that connect points from the specified array.
DrawLines(Pen, PointF[]) Draws a series of lines that connect points from the specified array.
DrawPageContent(PdfPage) Draws the specified page content.
DrawPath(DXPen, DXGraphicsPath) Draws the specified path on a page.
DrawPath(Pen, GraphicsPath) Draws the specified path on a page.
DrawPolygon(DXPen, PointF[]) Draws a polygon by points from the specified array.
DrawPolygon(Pen, PointF[]) Draws a polygon by points from the specified array.
DrawRectangle(DXPen, RectangleF) Draws a rectangle in the specified page area.
DrawRectangle(Pen, RectangleF) Draws a rectangle in the specified page area.
DrawString(String, DXFont, DXSolidBrush, PointF, PdfStringFormat) Draws text at the specified point. Allows you to specify brush, font, and string parameters.
DrawString(String, DXFont, DXSolidBrush, PointF) Draws text with the specified brush and font parameters at the specified page point.
DrawString(String, DXFont, DXSolidBrush, RectangleF, PdfStringFormat) Draws text in the specified page rectangle. Allows you to specify brush, font, and string parameters.
DrawString(String, DXFont, DXSolidBrush, RectangleF) Draws text with the specified brush and font parameters in the specified page rectangle.
DrawString(String, DXFont, DXSolidBrush, Single, Single, PdfStringFormat) Draws text at the specified page point. Allows you to specify brush, font, and string parameters.
DrawString(String, DXFont, DXSolidBrush, Single, Single) Draws text with the specified brush and font parameters at the specified point on a page.
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(DXBrush, RectangleF) Fills the interior of an ellipse located in the specified page rectangle.
FillEllipse(Brush, RectangleF) Fills the interior of an ellipse located in the specified page rectangle.
FillPath(DXBrush, DXGraphicsPath) Fills the interior of the specified path.
FillPath(Brush, GraphicsPath) Fills the interior of the specified path.
FillPolygon(DXBrush, PointF[]) Fills the interior of a polygon specified by array points.
FillPolygon(Brush, PointF[]) Fills the interior of a polygon specified by array points.
FillRectangle(DXBrush, RectangleF) Fills the interior of a rectangle located in the specified page area.
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, DXFont, PdfStringFormat, Single, Single) Measures the specified string when drawn with the specified font and format parameters, horizontal and vertical resolutions.
MeasureString(String, DXFont, PdfStringFormat) Measures the specified string when drawn with the specified font and text formatting parameters.
MeasureString(String, DXFont, 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, DXFont, 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, DXFont, SizeF, PdfStringFormat) Measures the specified string when drawn with the specified font, text layout size, and format.
MeasureString(String, DXFont, SizeF) Measures the specified string when drawn with the specified font settings.
MeasureString(String, DXFont) Measures the specified string when drawn with specified font parameters.
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