PdfPages Object

Overview

PdfPages is a collection of PdfPage objects representing all pages in the document. The PdfPages object is used to retrieve, add and remove pages of the document. The object is obtainable via PdfDocument's Pages property.

Member List

Properties


int Count (Read-only)
Returns the number of PdfRow objects in this collection.

PdfPage this[int Index](Read-only)
This is the default parameterized property returning a PdfPage specified by a 1-based Index.

Methods


PdfPage Add()
PdfPage Add(int InsertBefore)
PdfPage Add(float Width, float Height)
PdfPage Add(float Width, float Height, int InsertBefore)

Adds a new page to the document. Returns an instance of the PdfPage object representing the newly created page.

Width, Height - optionally specify the width and height (in default user units) of the page. By default, the page size is 612 x 792 which corresponds to 8.5" x 11".

InsertBefore is an optional 1-based index of a page before which the new page will be inserted.


void Remove(int Index)
Removes a page specified by a 1-based Index.