[]
Adds a page to the document.
public int Add(PdfPage page)
Type | Name | Description |
---|---|---|
PdfPage | page | PdfPage to add to the document. |
Type | Description |
---|---|
int | The index of the new page in the document. |
<p>Since the <xref href="C1.Pdf.PdfPage" data-throw-if-not-resolved="false"></xref> 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.
Creates a new PdfPage and adds it to the end of the document.
public int Add()
Type | Description |
---|---|
int | The index of the new page. |
<p>The size of the new page is determined by the <xref href="C1.Pdf.C1PdfDocument.PageSize" data-throw-if-not-resolved="false"></xref>
property of the parent document.
The new page becomes current after it is added to the document (see the CurrentPage property).
You can also add pages to a C1PdfDocument by calling the NewPage() method.
Creates a new PdfPage with the specified size and adds it to the end of the document.
public int Add(SizeF pageSize)
Type | Name | Description |
---|---|---|
SizeF | pageSize | The size of the new page, in points. |
Type | Description |
---|---|
int | The index of the new page. |
The new page becomes current after it is added to the document (see the CurrentPage property).
You can also add pages to a C1PdfDocument by calling the NewPage() method.
Creates a new PdfPage with the specified size and adds it to the end of the document.
public int Add(PaperKind paperKind)
Type | Name | Description |
---|---|---|
PaperKind | paperKind | The size of the new page, expressed as a GrapeCity.Documents.Common.PaperKind. |
Type | Description |
---|---|
int | The index of the new page. |
The new page becomes current after it is added to the document (see the CurrentPage property).
You can also add pages to a C1PdfDocument by calling the NewPage() method.