Aspose::Pdf::PageCollection class

PageCollection class

Collection of PDF document pages.

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

Methods

MethodDescription
Accept(const System::SharedPtr<Annotations::AnnotationSelector>&)Accepts AnnotationSelector visitor object that provides functionality to work with annotations.
Accept(const System::SharedPtr<ImagePlacementAbsorber>&)Accepts ImagePlacementAbsorber visitor object that provides functionality to work with image placement objects.
Accept(const System::SharedPtr<Text::TextFragmentAbsorber>&)Accepts TextFragmentAbsorber visitor object that provides functionality to work with text objects.
Accept(const System::SharedPtr<Text::TextAbsorber>&)Accepts TextAbsorber visitor object that provides functionality to work with text objects.
Add()Adds an empty page. 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.
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.
BeginUpdate()Updates when group changes begin. Stops page cache recalculation on each operation. We recommend calling the BeginUpdate/EndUpdate methods in a try-finally block.
Clear() overrideClear page collection.
Contains(const System::SharedPtr<Page>&) const overrideDetermines whether this instance contains the object.
CopyPage(const 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(const System::ArrayPtr<int32_t>&)Delete pages specified which numbers are specified in array.
EndUpdate()Updates when group changes are complete. Restores page cache recalculations on each operation. We recommend calling the BeginUpdate/EndUpdate methods in a try-finally block.
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()Gets synchronization object of the collection.
GetEnumerator() overrideReturns enumerator of pages.
idx_get(int32_t)Gets page by index.
IndexOf(const System::SharedPtr<Page>&)Returns index of the specified page.
Insert(int32_t)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.
Insert(int32_t, const System::SharedPtr<Page>&)Inserts page into page collection at specified place.
Insert(int32_t, const System::SharedPtr<System::Collections::Generic::ICollection<System::SharedPtr<Page>>>&)Inserts pages from the collection into document.
Insert(int32_t, const 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