Provides methods to create and save Pdf documents.

Namespace:  C1.Silverlight.Pdf
Assembly:  C1.Silverlight.Pdf (in C1.Silverlight.Pdf.dll)

Syntax

C#
public class C1PdfDocument : C1PdfDocumentBase
Visual Basic
Public Class C1PdfDocument _
	Inherits C1PdfDocumentBase

Remarks

When you create an instance of the C1PdfDocument class, you get a Pdf document with a single blank page. You can then add content to the page using methods similar to those available in the .NET Graphics class (DrawRectangle(Pen, Double, Double, Double, Double), DrawString(String, Font, Color, Rect, StringFormat), etc.).

You can add new pages using the NewPage()()()() method, and select the page size using the PaperKind or PageSize properties.

When the document is ready, you can save it to a file or a stream using the Save(String) method.

The coordinate system used by C1PdfDocument is based on points, with the origin located at the top left corner of the page. You can retrieve the page rectangle (measured in points) using the PageRectangle property.

Inheritance Hierarchy

System..::..Object
  C1.Silverlight.Pdf..::..C1PdfDocumentBase
    C1.Silverlight.Pdf..::..C1PdfDocument

See Also