public Document GetDocumentOfPageRange(int startIndex, int endIndex) { Document result = (Document)Document.Clone(false); foreach (Section section in mPageNumberFinder.RetrieveAllNodesOnPages(startIndex, endIndex, NodeType.Section)) result.AppendChild(result.ImportNode(section, true)); return result; }