Aspose::Pdf::PageCollection::Insert method

PageCollection::Insert(int32_t) method

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.

System::SharedPtr<Page> Aspose::Pdf::PageCollection::Insert(int32_t pageNumber)
ParameterTypeDescription
pageNumberint32_tPosition of the new page.

ReturnValue

Inserted page.

See Also

PageCollection::Insert(int32_t, System::ArrayPtr<System::SharedPtr<Page>>) method

Inserts pages of the array into document.

void Aspose::Pdf::PageCollection::Insert(int32_t pageNumber, System::ArrayPtr<System::SharedPtr<Page>> pages)
ParameterTypeDescription
pageNumberint32_tStarting number of the new pages.
pagesSystem::ArrayPtr<System::SharedPtr<Page>>Array of pages which will be inserted.

See Also

PageCollection::Insert(int32_t, System::SharedPtr<Page>) method

Inserts page into page collection at specified place.

System::SharedPtr<Page> Aspose::Pdf::PageCollection::Insert(int32_t pageNumber, System::SharedPtr<Page> entity)
ParameterTypeDescription
pageNumberint32_tRequired page index in collection.
entitySystem::SharedPtr<Page>Page to be inserted.

ReturnValue

Inserted page.

See Also

PageCollection::Insert(int32_t, System::SharedPtr<System::Collections::Generic::ICollection<System::SharedPtr<Page>>>) method

Inserts pages from the collection into document.

void Aspose::Pdf::PageCollection::Insert(int32_t pageNumber, System::SharedPtr<System::Collections::Generic::ICollection<System::SharedPtr<Page>>> pages)
ParameterTypeDescription
pageNumberint32_tStarting position of the new pages.
pagesSystem::SharedPtr<System::Collections::Generic::ICollection<System::SharedPtr<Page>>>Pages collection.

See Also