PageCollection Class

This class represents a collection of pages of in a PDF document

Definition

Namespace: Winnovative
Assembly: WnvHtmlToPdf_NetCore (in WnvHtmlToPdf_NetCore.dll) Version: 18.0.0
C#
public class PageCollection : IEnumerable
Inheritance
Object    PageCollection
Implements
IEnumerable

Properties

Count The number of pages in collection.
Document The parent document of this collection
Item Gets or sets the page at the specified zero based index in the pages collection.

Methods

Add Adds the specified page to the document pages collection. The page to be added is allowed to be from another document. The source document of the page to be added must remain opened until the current document is saved.
AddNewPage Creates a new PDF page and adds it to the collection. If there is a previous page in the collection, the orientation and size are inherited from the that page otherwise a first page with the default A4 size and Portrait orientation is created. The page margins are inherited from the default document margins.
AddNewPage(Margins) Creates a new PDF page and adds it to the collection. If there is a previous page in the collection, the orientation and size are inherited from the that page otherwise a first page with the default A4 size and Portrait orientation is created.
AddNewPage(PdfPageSize, Margins) Creates a new PDF page and adds it to the collection. If there is a previous page in the collection, the page orientation is inherited from the that page otherwise a first page with the specified size and Portrait orientation is created.
AddNewPage(PdfPageSize, Margins, PdfPageOrientation) Creates a new PDF page with the specified size, margins and orientation and adds it to the collection.
AddRange Adds the specified array of pages to the PDF document pages. The page to be added are allowed to be from another document. The source document of the pages to be added must remain opened until the current document is saved.
Contains Indicates if the collection contains specified page.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetEnumerator Gets the collection enumerator.
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
IndexOf Returns the index of specified page in collection.
Insert Inserts the specified page into the document pages collection at the specified index. The page to be added is allowed to be from another document. The source document of the page to be inserted must remain opened until the current document is saved.
InsertNewPage Creates a new PDF page with the specified size, margins and orientation and inserts it into the collection at the specified index
MemberwiseClone
(Inherited from Object)
Remove(Int32) Removes the PDF page at the specified index in collection.
Remove(PdfPage) Removes the specified PDF page from the pages collection.
ToString
(Inherited from Object)

See Also