Exemple #1
0
            public static PageNumberFinder Create(Document document)
            {
                LayoutCollector layoutCollector = new LayoutCollector(document);

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

                pageNumberFinder.SplitNodesAcrossPages();
                return(pageNumberFinder);
            }
Exemple #2
0
 public SectionSplitter(PageNumberFinder pageNumberFinder)
 {
     this.pageNumberFinder = pageNumberFinder;
 }
Exemple #3
0
 /// <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);
 }