[]
        
(Showing Draft Content)

C1.Win.Pdf.C1PdfDocument

C1PdfDocument Class

Provides methods to create and save Pdf documents.

Inheritance
C1PdfDocumentBase
C1PdfDocument
C1PdfDocument
Implements
IFlowDocument
IFlowRendering
IRendering
Namespace: C1.Win.Pdf
Assembly: C1.Win.Pdf.dll
Syntax
[ToolboxBitmap(typeof(C1PdfDocument), "C1PdfDocument.png")]
public class C1PdfDocument : C1PdfDocument, IComponent, IDisposable, IFlowDocument, IFlowRendering, IRendering
<ToolboxBitmap(GetType(C1PdfDocument), "C1PdfDocument.png")>
Public Class C1PdfDocument
    Inherits C1PdfDocument
    Implements IComponent, IDisposable, IFlowDocument, IFlowRendering, IRendering

Constructors

Name Description
C1PdfDocument()

Creates a new instance of the C1PdfDocument class.

C1PdfDocument(PaperKind)

Creates a new instance of the C1PdfDocument class.

C1PdfDocument(PaperKind, bool)

Creates a new instance of the C1PdfDocument class.

C1PdfDocument(SizeF)

Creates a new instance of the C1PdfDocument class.

Properties

Name Description
MaxHeaderBookmarkLevel

Gets or sets the maximum header level to create bookmarks for when rendering text in metafiles.

ParseEmfPlus

Gets or sets the flag to convert EMF PLUS metafiles to EMF ONLY metafiles or no.

Methods

Name Description
Dispose(bool)

Releases all resources used by the Control.

DrawArc(Pen, RectangleF, float, float)

Draws an arc defined by an ellipse specified by a rectangle structure and two radial lines.

DrawBezier(Pen, PointF, PointF, PointF, PointF)

Draws a Bezier spline defined by four point structures.

DrawBeziers(Pen, PointF[])

Draws a series of Bezier splines from an array of point structures.

DrawEllipse(Pen, RectangleF)

Draws an ellipse defined by a bounding rectangle specified by a rectangle structure.

DrawEllipse(Pen, float, float, float, float)

Draws an ellipse defined by a bounding rectangle specified by a coordinate pair, a width, and a height.

DrawImage(Image, RectangleF)

Draws the specified Image object at the specified location, stretching it to fit the destination rectangle.

DrawImage(Image, RectangleF, ContentAlignment, ImageSizeMode)

Draws the specified Image object at the specified location, adjusting the image size as specified by the align and mode parameters.

DrawImage(Image, RectangleF, ContentAlignment, ImageSizeMode)

Draws the specified Image object at the specified location, adjusting the image size as specified by the align and mode parameters.

DrawImage(Image, RectangleF, RectangleF)

Draws the specified Image object at the specified location, clipping the output to the given clipping rectangle.

DrawLine(Pen, double, double, double, double)

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

DrawLine(Pen, PointF, PointF)

Draws a line connecting two point structures.

DrawLine(Pen, float, float, float, float)

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

DrawLines(Pen, PointF[])

Draws a series of line segments that connect an array of point structures.

DrawMetafile(Metafile, RectangleF, RectangleF, bool, GraphicsUnit)

Draw metafile.

DrawPath(Pen, GraphicsPath)

Draws a path defined by a GraphicsPath object.

DrawPath(Pen, GraphicsPath, bool)

Draws a path defined by a GraphicsPath object.

DrawPath(Pen, PointF[], byte[], bool)

Draws a path defined by points and types.

DrawPie(Pen, RectangleF, float, float)

Draws a pie shape defined by an ellipse specified by a rectangle structure and two radial lines.

DrawPolygon(Pen, PointF[])

Draws a polygon defined by an array of point structures.

DrawRectangle(Pen, RectangleF)

Draws a rectangle specified by a rectangle structure.

DrawRectangle(Pen, RectangleF, SizeF)

Draws a rounded rectangle specified by rectangle and size structures.

DrawRectangle(Pen, float, float, float, float)

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

DrawString(string, Font, Brush, PointF)

Draws the specified text string at the specified point with the specified Brush and Font objects.

DrawString(string, Font, Brush, PointF, StringFormat)

Draws the specified text string at the specified point with the specified Brush and Font objects using the formatting attributes of the specified StringFormat object.

DrawString(string, Font, Brush, PointF, StringFormat, float)

Draws the specified text string at the specified point with the specified Brush and Font objects using the formatting attributes of the specified StringFormat object and specified width coefficient of text characters.

DrawString(string, Font, Brush, PointF, float)

Draws the specified text string at the specified point with the specified Brush, Font objects and specified width coefficient of text characters.

DrawString(string, Font, Brush, RectangleF)

Draws the specified text string in the specified rectangle with the specified Brush and Font objects.

DrawString(string, Font, Brush, RectangleF, StringFormat)

Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the formatting attributes of the specified StringFormat object.

DrawString(string, Font, Brush, RectangleF, StringFormat, float)

Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the formatting attributes of the specified StringFormat object.

DrawString(string, Font, Brush, RectangleF, int)

Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the formatting attributes of the specified StringFormat object.

DrawString(string, Font, Brush, RectangleF, int, StringFormat)

Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the formatting attributes of the specified StringFormat object.

DrawString(string, Font, Brush, RectangleF, int, StringFormat, float)

Draws the specified text string in the specified rectangle, with the specified Brush and Font, using the formatting attributes of the specified StringFormat object and specified character width coefficient.

DrawString(string, Font, Color, PointF)

Draws the specified text string at the specified point with the specified Color and Font objects.

DrawString(string, Font, Color, PointF, StringFormat)

Draws the specified text string at the specified point with the specified Color and Font objects using the formatting attributes of the specified StringFormat object.

DrawString(string, Font, Color, PointF, StringFormat, float)

Draws the specified text string at the specified point with the specified Brush and Font objects using the formatting attributes of the specified StringFormat object and specified width coefficient of text characters.

DrawString(string, Font, Color, PointF, float)

Draws the specified text string at the specified point with the specified Brush, Font objects and specified width coefficient of text characters.

DrawString(string, Font, Color, RectangleF)

Draws the specified text string in the specified rectangle with the specified Color and Font objects.

DrawString(string, Font, Color, RectangleF, StringFormat)

Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the formatting attributes of the specified StringFormat object.

DrawString(string, Font, Color, RectangleF, StringFormat, float)

Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the formatting attributes of the specified StringFormat object.

DrawString(string, Font, Color, RectangleF, int)

Draws the specified text string in the specified rectangle with the specified Color and Font objects using the formatting attributes of the specified StringFormat object.

DrawString(string, Font, Color, RectangleF, int, StringFormat)

Draws the specified text string in the specified rectangle with the specified Color and Font objects using the formatting attributes of the specified StringFormat object.

DrawString(string, Font, Color, RectangleF, int, StringFormat, float)

Draws the specified text string in the specified rectangle, with the specified Brush and Font, using the formatting attributes of the specified StringFormat object and specified character width coefficient.

DrawStringRtf(string, Font, Brush, RectangleF)

Draws an RTF string in the specified rectangle with the specified Brush and Font objects.

DrawStringRtf(string, Font, Brush, RectangleF, int)

Draws an RTF string in the specified rectangle with the specified Brush and Font objects, starting at a given offset within the string.

FillArc(Brush, RectangleF, float, float)

Fills an arc defined by an ellipse specified by a rectangle structure and two radial lines.

FillEllipse(Brush, RectangleF)

Fills the interior of an ellipse defined by a bounding rectangle specified by a rectangle structure.

FillEllipse(Brush, float, float, float, float)

Fills the interior of an ellipse defined by a bounding rectangle specified by a coordinate pair, a width, and a height.

FillPath(Brush, GraphicsPath)

Fills a path defined by a GraphicsPath object.

FillPath(Brush, PointF[], byte[], bool)

Fills a path defined by points and types.

FillPie(Brush, RectangleF, float, float)

Fills a pie shape defined by an ellipse specified by a rectangle structure and two radial lines.

FillPolygon(Brush, PointF[], FillMode)

Fills a polygon defined by an array of point structures using the specified fill mode.

FillPolygon(Color, PointF[], FillMode)

Fills a polygon defined by an array of point structures using the specified fill mode.

FillRectangle(Brush, RectangleF)

Fills the interior of a rectangle specified by a rectangle structure.

FillRectangle(Brush, RectangleF, SizeF)

Fills the interior of a rounded rectangle specified by rectangle and size structures.

FillRectangle(Brush, float, float, float, float)

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

FromFont(XLFont)

Gets converted font.

FromFont(Font)

Gets converted font.

GetImageSizeInPoints(Image)

Gets the size of an image expressed in points.

GetImageSizeInTwips(Image)

Gets the size of an image expressed in twips.

MeasureString(string, Font)

Measures the specified string when drawn with a given Font object.

MeasureString(string, Font, float)

Measures the specified string when drawn with a given Font object into a rectangle with the specified width.

MeasureString(string, Font, float, StringFormat, int)

Measures the specified string when drawn with the specified Font object and formatted with the specified StringFormat object.

MeasureStringRtf(string, Font)

Measures an RTF string when drawn with a given Font object.

MeasureStringRtf(string, Font, float)

Measures an RTF string when drawn with a given Font object into a rectangle with the specified width.

SetResources(params object[])

Sets default resources (pen, color, and font).

SetTransform(Matrix)

Sets the PDF transform (write the matrix).

SetTransform(Matrix)

Sets the PDF transform (write the matrix).

ToBitmap(Image)

Gets GrapeCity.Documents.Imaging.GcBitmap object from Image object.

ToBitmap(Image)

Gets GrapeCity.Documents.Imaging.GcBitmap object from Image object.

ToBytes(Image)

Gets image data.

ToColor(Brush)

Gets approximate color for the brush..

ToDocument(Image, float, float)
ToFont(Font, float)

Gets converted font.

ToFormat(StringFormat)

Gets converted string format.

ToImage(GcBitmap)

Gets GrapeCity.Documents.Drawing.Image object from GrapeCity.Documents.Imaging.GcBitmap object.

ToImage(Image)

Gets GrapeCity.Documents.Drawing.Image object from Image object.

ToPen(Pen)

Gets converted pen.

ToSvg(Image, float, float, bool)

Convert a image (metafile as vectors) to SVG.