PageCollection

PageCollection class

Collection of PDF document pages.

public sealed class PageCollection : ICollection<Page>

Properties

Name Description
Count { get; } Gets count of pages in the document.
IsReadOnly { get; } Gets value indicating of collection is readonly. Always returns false.
IsSynchronized { get; } Returns true of object is synchorinzed.
Item { get; } Gets page by index.
SyncRoot { get; } Gets synchronization object of the collection.

Methods

Name Description
Accept(AnnotationSelector) Accepts AnnotationSelector visitor object that provides functionality to work with annotations.
Accept(ImagePlacementAbsorber) Accepts ImagePlacementAbsorber visitor object that provides functionality to work with image placement objects.
Accept(TextAbsorber) Accepts TextAbsorber visitor object that provides functionality to work with text objects.
Accept(TextFragmentAbsorber) Accepts TextFragmentAbsorber visitor object that provides functionality to work with text objects.
Add() Adds empty page
Add(ICollection<Page>) Adds to collection all pages from list.
Add(Page) Adds page to collection.
Add(Page[]) Adds to collection all pages from array.
Clear() Clear page collection.
Contains(Page) Determines whether this instance contains the object.
CopyTo(Page[], int) Copyies pages into document.
Delete() Deletes all pages from collection.
Delete(int) Delete specified page.
Delete(int[]) Delete pages specified which numbers are specified in array.
Flatten() Removes all fields located on the pages and place their values instead.
FreeMemory() Clears cached data
GetEnumerator() Returns enumerator of pages.
IndexOf(Page) Returns index of the specified page.
Insert(int) Insert empty apge into collection at the specified position.
Insert(int, ICollection<Page>) Inserts pages from the collection into document.
Insert(int, Page) Inserts page into page collection at specified place.
Insert(int, Page[]) Inserts pages of the array into document.
Remove(Page) Removes the specified item, throws NotSupportedException.

See Also