public static PageNumberFinder Create(Document document)
        {
            LayoutCollector layoutCollector = new LayoutCollector(document);

            document.UpdatePageLayout();
            PageNumberFinder pageNumberFinder = new PageNumberFinder(layoutCollector);

            pageNumberFinder.SplitNodesAcrossPages();
            return(pageNumberFinder);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentPageSplitter"/> 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.
 /// </summary>
 /// <param name="source">Source document</param>
 public DocumentPageSplitter(Document source)
 {
     pageNumberFinder = PageNumberFinderFactory.Create(source);
 }
 public SectionSplitter(PageNumberFinder pageNumberFinder)
 {
     this.pageNumberFinder = pageNumberFinder;
 }