Table of Contents

Class PdfPageCollection

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

Represents the collection of pages in a PdfDocument.

public sealed class PdfPageCollection : IEnumerable<PdfPage?>, IEnumerable
Inheritance
PdfPageCollection
Implements
Inherited Members

Remarks

Enumerates PdfPage instances associated with the document. The sequence may include null entries when a page cannot be constructed from the underlying PDF data.

Properties

Count

Gets the number of pages contained in this collection.

this[int]

Gets the PdfPage at the specified index in this collection.

Methods

Add()

Adds a new page to the end of the document's page collection.

Copy(int[])

Copies the pages with the specified indexes into a new PdfDocument.

Copy(int[], PdfConfigurationOptions)

Copies the pages with the specified indexes into a new PdfDocument using the provided PdfConfigurationOptions.

CopyRange(int, int)

Copies a range of pages into a new PdfDocument.

CopyRange(int, int, PdfConfigurationOptions)

Copies a range of pages into a new PdfDocument using the specified PdfConfigurationOptions.

Extract(int[])

Extracts the pages with the specified indexes into a new PdfDocument.

Extract(int[], PdfConfigurationOptions)

Extracts the pages with the specified indexes into a new PdfDocument using the provided PdfConfigurationOptions.

ExtractRange(int, int)

Extracts a range of pages into a new PdfDocument.

ExtractRange(int, int, PdfConfigurationOptions)

Extracts a range of pages into a new PdfDocument using the specified PdfConfigurationOptions.

GetEnumerator()

Returns an enumerator that iterates through the collection of pages.

Insert(int)

Inserts a new page into the document's page collection at the specified index.

Move(int, int)

Changes the position of a page within the collection of document pages.

Move(int[], int)

Changes the position of multiple pages within the collection of document pages.

MoveRange(int, int, int)

Changes the position of a contiguous range of pages within the collection of document pages.

RemoveAt(int)

Removes the page at the specified index from the document's page collection.

RemoveAt(int[])

Removes the pages at the specified indexes from the document's page collection.

RemoveFrom(int)

Removes a range of pages from the document's page collection.

RemoveRange(int, int)

Removes a range of pages from the document's page collection.

Swap(int, int)

Interchanges the positions of two pages within the collection of document pages.