The C1PdfDocument type exposes the following members.

Constructors

  Name Description
Public method C1PdfDocument()()()()
Creates a new instance of the C1PdfDocument class.
Public method C1PdfDocument(Size)
Creates a new instance of the C1PdfDocument class.
Public method C1PdfDocument(PaperKind)
Creates a new instance of the C1PdfDocument class.
Public method C1PdfDocument(PaperKind, Boolean)
Creates a new instance of the C1PdfDocument class.

Methods

  Name Description
Public method AddAttachment(String, array<Byte>[]()[][], Rect)
Adds a file attachment to the current page.
Public method AddAttachment(String, array<Byte>[]()[][], Rect, AttachmentIconEnum, Color)
Adds a file attachment to the current page.
Public method AddAttachment(String, array<Byte>[]()[][], Rect, Int32, AttachmentIconEnum, Color)
Adds a file attachment to the document.
Public method AddBookmark
Adds a bookmark to the current page.
Public method AddLink
Adds a hyperlink to the current page.
Public method AddTarget(String, Rect)
Adds a hyperlink target to the current page.
Public method AddTarget(String, Int32, Rect)
Adds a hyperlink target to the document.
Public method Clear
Restores the document to its initial state.
(Inherited from C1PdfDocumentBase.)
Public method DrawArc
Draws an arc defined by an ellipse specified by a Rect structure and two radial lines.
Public method DrawBezier
Draws a Bezier spline defined by four Point structures.
Public method DrawBeziers
Draws a series of Bezier splines from an array of Point structures.
Public method DrawElement(FrameworkElement, Rect)
Draws a FrameworkElement into the document at a specified position.
Public method DrawElement(FrameworkElement, Rect, Rect)
Draws a FrameworkElement into the document at a specified position.
Public method DrawElement(FrameworkElement, Rect, ContentAlignment, Stretch)
Draws the specified WriteableBitmap object at the specified location, adjusting the image size as specified by the align and stretch parameters.
Public method DrawEllipse(Pen, Rect)
Draws an ellipse defined by a bounding rectangle specified by a Rect structure.
Public method DrawEllipse(Pen, Double, Double, Double, Double)
Draws an ellipse defined by a bounding rectangle specified by a coordinate pair, a width, and a height.
Public method DrawImage(WriteableBitmap, Rect)
Draws the specified WriteableBitmap object at the specified location, stretching it to fit the destination rectangle.
Public method DrawImage(WriteableBitmap, Rect, Rect)
Draws the specified WriteableBitmap object at the specified location, clipping the output to the given clipping rectangle.
Public method DrawImage(WriteableBitmap, Rect, ContentAlignment, Stretch)
Draws the specified WriteableBitmap object at the specified location, adjusting the image size as specified by the align and stretch parameters.
Public method DrawLine(Pen, Point, Point)
Draws a line connecting two Point structures.
Public method DrawLine(Pen, Double, Double, Double, Double)
Draws a line connecting the two points specified by coordinate pairs.
Public method DrawLines
Draws a series of line segments that connect an array of Point structures.
Public method DrawPie
Draws a pie shape defined by an ellipse specified by a Rect structure and two radial lines.
Public method DrawPolygon
Draws a polygon defined by an array of Point structures.
Public method DrawRectangle(Pen, Rect)
Draws a rectangle specified by a Rect structure.
Public method DrawRectangle(Pen, Rect, Size)
Draws a rounded rectangle specified by Rect and Size structures.
Public method DrawRectangle(Pen, Double, Double, Double, Double)
Draws a rectangle specified by a coordinate pair, a width, and a height.
Public method DrawString(TextBlock, Rect)
Draws a string into the specified Rect.
Public method DrawString(String, Font, Color, Rect)
Draws a string into the specified Rect.
Public method DrawString(String, Font, Color, Rect, StringFormat)
Draws a string into the specified Rect.
Public method DrawString(String, Font, Color, Rect, StringFormat, Int32)
Draws a string into the specified Rect.
Public method Equals (Inherited from Object.)
Public method FillArc
Fills an arc defined by an ellipse specified by a Rect structure and two radial lines.
Public method FillEllipse(Color, Rect)
Fills the interior of an ellipse defined by a bounding rectangle specified by a Rect structure.
Public method FillEllipse(Color, Double, Double, Double, Double)
Fills the interior of an ellipse defined by a bounding rectangle specified by a coordinate pair, a width, and a height.
Public method FillPie
Fills a pie shape defined by an ellipse specified by a Rect structure and two radial lines.
Public method FillPolygon(Color, array<Point>[]()[][])
Fills a polygon defined by an array of Point structures.
Public method FillPolygon(Color, array<Point>[]()[][], FillRule)
Fills a polygon defined by an array of Point structures using the specified fill mode.
Public method FillRectangle(Color, Rect)
Fills the interior of a rectangle specified by a Rect structure.
Public method FillRectangle(Color, Rect, Size)
Fills the interior of a rounded rectangle specified by Rect and Size structures.
Public method FillRectangle(Color, Double, Double, Double, Double)
Fills the interior of a rectangle specified by a coordinate pair, a width, and a height.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method MeasureString(String, Font)
Measures the specified string when drawn with a given Font object.
Public method MeasureString(String, Font, Double)
Measures the specified string when drawn with a given Font object into a rectangle with the specified width.
Public method MeasureString(String, Font, Double, StringFormat)
Measures the specified string when drawn with the specified Font object and formatted with the specified StringFormat object.
Public method NewPage
Starts a new page.
(Inherited from C1PdfDocumentBase.)
Public method ResetClipRect
Restores the clipping area to the state before the last call to SetClipRect(Rect).
Public method Save(Stream)
Saves the Pdf document to a Stream.
(Inherited from C1PdfDocumentBase.)
Public method Save(String)
Saves the Pdf document to a file.
(Inherited from C1PdfDocumentBase.)
Public method SetClipRect
Sets the clipping area.
Public method ToString (Inherited from Object.)
Public method Write
Writes raw content into the Pdf stream for the current page.
(Inherited from C1PdfDocumentBase.)

Properties

  Name Description
Public property Compression
Gets or sets the compression level to use when saving the document.
(Inherited from C1PdfDocumentBase.)
Public property CurrentPage
Gets or sets the index of the current page within the document.
(Overrides C1PdfDocumentBase..::..CurrentPage.)
Public property DocumentInfo
Gets the PdfDocumentInfo object that contains information about this document (author, etc).
(Inherited from C1PdfDocumentBase.)
Public property Landscape
Gets or sets the default page orientation for the document.
Public property NumberDecimalDigits
Gets or sets the maximum number of decimal places to use in numeric values. The default is 6. Decrease it to make the PDF file smaller.
(Inherited from C1PdfDocumentBase.)
Public property PageRectangle
Gets a rectangle that represents the surface of the current page (in points).
(Inherited from C1PdfDocumentBase.)
Public property Pages
Gets the collection of PdfPage objects that make up the document.
(Inherited from C1PdfDocumentBase.)
Public property PageSize
Gets or sets the default page size for the document (in points).
(Overrides C1PdfDocumentBase..::..PageSize.)
Public property PaperKind
Gets or sets the default page size for the document.
Public property Security
Gets the PdfSecurity object that manages security for this document (passwords, etc).
(Inherited from C1PdfDocumentBase.)
Public property ViewerPreferences
Gets the PdfViewerPreferences object that contains information about how this document should be displayed.
(Inherited from C1PdfDocumentBase.)

Events

  Name Description
Public event DrawingElement
Occurs when the C1PdfDocument is about to render a FrameworkElement.
Public event GeneratingDocument
Fires periodically while data is written into the PDF document.
(Inherited from C1PdfDocumentBase.)
Public event SavingDocument
Fires while pages are written to the PDF stream after a call to the Save(Stream) method.
(Inherited from C1PdfDocumentBase.)

See Also