Aspose::Pdf::PageCollection class

PageCollection class

Collection of PDF document pages.

class PageCollection : public System::Collections::Generic::ICollection<System::SharedPtr<Aspose::Pdf::Page>>,
                       public Aspose::Pdf::ISupportsMemoryCleanup

Methods

MethodDescription
Accept(System::SharedPtr<Annotations::AnnotationSelector>)Accepts AnnotationSelector visitor object that provides functionality to work with annotations.
Accept(System::SharedPtr<ImagePlacementAbsorber>)Accepts ImagePlacementAbsorber visitor object that provides functionality to work with image placement objects.
Accept(System::SharedPtr<Text::TextFragmentAbsorber>)Accepts TextFragmentAbsorber visitor object that provides functionality to work with text objects.
Accept(System::SharedPtr<Text::TextAbsorber>)Accepts TextAbsorber visitor object that provides functionality to work with text objects.
Add()Adds empty page.
Add(const System::SharedPtr<System::Collections::Generic::ICollection<System::SharedPtr<Page>>>&)Adds to collection all pages from list.
Add(const System::ArrayPtr<System::SharedPtr<Page>>&)Adds to collection all pages from array.
Clear() overrideClear page collection.
Contains(const System::SharedPtr<Page>&) const overrideDetermines whether this instance contains the object.
CopyPage(System::SharedPtr<Page>)Adds page to collection.
CopyTo(System::ArrayPtr<System::SharedPtr<Page>>, int32_t) overrideCopyies pages into document.
Delete(int32_t)Delete specified page.
Delete()Deletes all pages from collection.
Delete(System::ArrayPtr<int32_t>)Delete pages specified which numbers are specified in array.
Flatten()Removes all fields located on the pages and place their values instead.
FreeMemory() overrideClears cached data.
get_Count() const overrideGets count of pages in the document.
get_IsReadOnly() const overrideGets value indicating of collection is readonly. Always returns false.
get_IsSynchronized()Returns true of object is synchorinzed.
get_SyncRoot() constGets synchronization object of the collection.
GetEnumerator() overrideReturns enumerator of pages.
idx_get(int32_t)Gets page by index.
IndexOf(System::SharedPtr<Page>) constReturns index of the specified page.
Insert(int32_t)Insert empty apge into collection at the specified position.
Insert(int32_t, System::SharedPtr<Page>)Inserts page into page collection at specified place.
Insert(int32_t, System::SharedPtr<System::Collections::Generic::ICollection<System::SharedPtr<Page>>>)Inserts pages from the collection into document.
Insert(int32_t, System::ArrayPtr<System::SharedPtr<Page>>)Inserts pages of the array into document.
Remove(const System::SharedPtr<Page>&) overrideRemoves the specified item, throws NotSupportedException
.

See Also