PageCollection.Insert
Contents
[
Hide
]Insert(int)
Insert an empty page into the collection at the specified position. If the document already contains pages with varying sizes, the size of the most frequently occurring page will be selected. In the case there are only two different pages, the size of the first page will be used.
public Page Insert(int pageNumber)
| Parameter | Type | Description |
|---|---|---|
| pageNumber | Int32 | Position of the new page. |
Return Value
Inserted page.
See Also
- class Page
- class PageCollection
- namespace Aspose.Pdf
- assembly Aspose.PDF
Insert(int, Page)
Inserts page into page collection at specified place.
public Page Insert(int pageNumber, Page entity)
| Parameter | Type | Description |
|---|---|---|
| pageNumber | Int32 | Required page index in collection. |
| entity | Page | Page to be inserted. |
Return Value
Inserted page.
See Also
- class Page
- class PageCollection
- namespace Aspose.Pdf
- assembly Aspose.PDF
Insert(int, ICollection<Page>)
Inserts pages from the collection into document.
public void Insert(int pageNumber, ICollection<Page> pages)
| Parameter | Type | Description |
|---|---|---|
| pageNumber | Int32 | Starting position of the new pages. |
| pages | ICollection`1 | Pages collection. |
See Also
- class Page
- class PageCollection
- namespace Aspose.Pdf
- assembly Aspose.PDF
Insert(int, Page[])
Inserts pages of the array into document.
public void Insert(int pageNumber, Page[] pages)
| Parameter | Type | Description |
|---|---|---|
| pageNumber | Int32 | Starting number of the new pages. |
| pages | Page[] | Array of pages which will be inserted. |
See Also
- class Page
- class PageCollection
- namespace Aspose.Pdf
- assembly Aspose.PDF