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) { this.pageNumberFinder = PageNumberFinderFactory.Create(source); }
public SectionSplitter(PageNumberFinder pageNumberFinder) { this.pageNumberFinder = pageNumberFinder; }
/// <summary> /// 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. /// </summary> /// <param name="collector">A collector instance which has layout model records for the document.</param> public DocumentPageSplitter(LayoutCollector collector) { mPageNumberFinder = new PageNumberFinder(collector); mPageNumberFinder.SplitNodesAcrossPages(); }
public SectionSplitter(PageNumberFinder pageNumberFinder) { mPageNumberFinder = pageNumberFinder; }
/// <summary> /// 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. /// </summary> /// <param name="collector">A collector instance which has layout model records for the document.</param> public DocumentPageSplitter(LayoutCollector collector) { mPageNumberFinder = new PageNumberFinder(collector); mPageNumberFinder.SplitNodesAcrossPages(); }