Provides methods for extracting nodes of a document which are rendered on a specified pages.
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
 /// <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);
 }
Exemple #3
0
 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;
 }
Exemple #6
0
 /// <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();
 }