public static PageNumberFinder Create(Document document) { LayoutCollector layoutCollector = new LayoutCollector(document); document.UpdatePageLayout(); PageNumberFinder pageNumberFinder = new PageNumberFinder(layoutCollector); pageNumberFinder.SplitNodesAcrossPages(); return(pageNumberFinder); }
public SectionSplitter(PageNumberFinder pageNumberFinder) { this.pageNumberFinder = 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) { this.pageNumberFinder = PageNumberFinderFactory.Create(source); }