Adds a page to the document.

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

Syntax

C#
public int Add(
	PdfPage page
)
Visual Basic
Public Function Add ( _
	page As PdfPage _
) As Integer

Parameters

page
Type: C1.Silverlight.Pdf..::..PdfPage
PdfPage to add to the document.

Return Value

The index of the new page in the document.

Remarks

Since the PdfPage class has no public constructors, the only way to use this overload is to remove an existing page from the document first, then add that page back into the document.

Each page can appear only once in the document. Trying to add the same page twice will throw an exception.

See Also