C# Class Aspose.Words.Examples.CSharp.Loading_Saving.DocumentPageSplitter

Splits a document into multiple documents, one per page.
Exibir arquivo Open project: aspose-words/Aspose.Words-for-.NET Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
DocumentPageSplitter ( LayoutCollector collector ) : System

Initializes new instance of this class. This method splits the document into sections so that each page Begins and ends at a section boundary. It is recommended not to modify the document afterwards.

GetDocumentOfPage ( int pageIndex ) : Document

Gets the document of a page.

GetDocumentOfPageRange ( int startIndex, int endIndex ) : Document

Gets the document of a page range.

Method Details

DocumentPageSplitter() public method

Initializes new instance of this class. This method splits the document into sections so that each page Begins and ends at a section boundary. It is recommended not to modify the document afterwards.
public DocumentPageSplitter ( LayoutCollector collector ) : System
collector LayoutCollector A collector instance which has layout model records for the document.
return System

GetDocumentOfPage() public method

Gets the document of a page.
public GetDocumentOfPage ( int pageIndex ) : Document
pageIndex int 1-based index of a page.
return Document

GetDocumentOfPageRange() public method

Gets the document of a page range.
public GetDocumentOfPageRange ( int startIndex, int endIndex ) : Document
startIndex int 1-based index of the start page.
endIndex int 1-based index of the end page.
return Document