Click or drag to resize
Pdf Library for .NET

PdfPageCollection Methods

The PdfPageCollection type exposes the following members.

Methods
 NameDescription
Public methodCode exampleAdd Adds a new page to the document, using the document's default size and margins.
Public methodAdd(PdfMargins)Adds a new page with the specified margins.
Public methodAdd(PdfPage) Adds an existing page (from another document) to this document. The page is imported by content — the source document is not modified and subsequent changes to the source do not affect the imported copy.
Public methodAdd(PdfPage)Adds an array of existing pages (from another document) to this document.
Public methodAdd(PdfCustomPageSize, PdfMargins)Adds a new page with the specified size and margins.
Public methodAdd(PdfCustomPageSize, PdfMargins, PdfPageOrientation)Adds a new page with the specified size, margins, and orientation.
Public methodContains Checks whether the collection contains the specified page.
Public methodGetEnumerator Returns an enumerator that iterates through the page collection.
Public methodIndexOf Returns the zero-based index of the specified page.
Public methodInsert(Int32, PdfPage) Inserts an existing page at the specified index.
Public methodInsert(Int32, PdfCustomPageSize, PdfMargins, PdfPageOrientation) Inserts a new page at the specified index with the given size, margins, and orientation.
Public methodRemove Removes the specified page from the document.
Public methodRemoveAt Removes the page at the specified index.
Top
See Also