Aspose.Words.Examples.CSharp.Loading_Saving.DocumentPageSplitter.DocumentPageSplitter C# (CSharp) Method

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
        public DocumentPageSplitter(LayoutCollector collector)
        {
            mPageNumberFinder = new PageNumberFinder(collector);
            mPageNumberFinder.SplitNodesAcrossPages();
        }