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.)
Protected method CurveTo(Double, Single, Double, Double)
For internal use only. Draws a curve from the cursor to the specified position.
(Inherited from C1PdfDocumentBase.)
Protected method CurveTo(Double, Double, Double, Double, Double, Double)
For internal use only. Draws a curve from the cursor to the specified position.
(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.
Protected method Ellipse
For internal use only. Draws an ellipse.
(Inherited from C1PdfDocumentBase.)
Protected method EndPage
For internal use only. Closes page stream, clears page pointer.
(Inherited from C1PdfDocumentBase.)
Public method Equals
Determines whether the specified Object is equal to the current Object.
(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.
Protected method FillStroke(Boolean, Boolean, Boolean)
For internal use only. Strokes and fills the current path.
(Inherited from C1PdfDocumentBase.)
Protected method FillStroke(Boolean, Boolean, Boolean, FillRule)
For internal use only. Strokes and fills the current path.
(Inherited from C1PdfDocumentBase.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected method GetCurrentID
For internal use only. Gets the ID of the last object.
(Inherited from C1PdfDocumentBase.)
Protected method GetFontSize()()()()
For internal use only. Gets the current font size.
(Inherited from C1PdfDocumentBase.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected method GetNewID
For internal use only. Increments the ID for the next object.
(Inherited from C1PdfDocumentBase.)
Protected method GetStreamPosition
For internal use only. Gets the Position on the page stream.
(Inherited from C1PdfDocumentBase.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method LineTo
For internal use only. Draws a line from the cursor to the specified position.
(Inherited from C1PdfDocumentBase.)
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.
Protected method MeasureText(String)
For internal use only.
(Inherited from C1PdfDocumentBase.)
Protected method MeasureText(String, Font)
For internal use only.
(Inherited from C1PdfDocumentBase.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method MoveTo
For internal use only. Moves cursor to a specified position.
(Inherited from C1PdfDocumentBase.)
Public method NewPage
Starts a new page.
(Inherited from C1PdfDocumentBase.)
Protected method OnDrawingElement
Raises the DrawingElement event.
Protected method OnGeneratingDocument
Raises the GeneratingDocument event.
(Inherited from C1PdfDocumentBase.)
Protected method OnSavingDocument
Raises the SavingDocument event.
(Inherited from C1PdfDocumentBase.)
Protected method PieArc(Rect, Double, Double, Boolean)
For internal use only. Draws a pie slice or an arc.
(Inherited from C1PdfDocumentBase.)
Protected method PieArc(Rect, Double, Double, Boolean, Boolean)
For internal use only. Draws a pie slice or an arc.
(Inherited from C1PdfDocumentBase.)
Protected method Polygon
For internal use only. Draws a polygon.
(Inherited from C1PdfDocumentBase.)
Protected method Rectangle
For internal use only. Draws a rectangle.
(Inherited from C1PdfDocumentBase.)
Public method ResetClipRect
Restores the clipping area to the state before the last call to SetClipRect(Rect).
Protected method ResetResourceState
For internal use only. Resets current font, pen, and brush state.
(Inherited from C1PdfDocumentBase.)
Protected method RoundRect
For internal use only. Draws a rounded rectangle.
(Inherited from C1PdfDocumentBase.)
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.)
Protected method SetBrush
For internal use only. Sets the current brush color.
(Inherited from C1PdfDocumentBase.)
Public method SetClipRect
Sets the clipping area.
Protected method SetFont
For internal use only. Sets the current font.
(Inherited from C1PdfDocumentBase.)
Protected method SetPen
For internal use only. Sets the current pen.
(Inherited from C1PdfDocumentBase.)
Protected method StartOverlay
For internal use only. Reopens a page for additional output.
(Inherited from C1PdfDocumentBase.)
Protected method StartPage
For internal use only. Adds a page to the page collection, opens stream writer on the new page.
(Inherited from C1PdfDocumentBase.)
Protected method TextOut
For internal use only. Output text to current Pdf stream.
(Inherited from C1PdfDocumentBase.)
Public method ToString
Returns a String that represents the current Object.
(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