When using the extractPages in the middle of a document, if a numbered paragraph is split across multiple pages, the extractPage will sometimes add numbering as well as indent the paragraph instead of starting at the margin as displayed
using (FileStream sourceStream = new FileStream(inFile, FileMode.Open, FileAccess.Read))
{
var doc = new Document(sourceStream);
var extractDoc = doc.ExtractPages(1, 1);
extractDoc.Save("extract.docx"));
}
gibberish_small_3pgs.docx (36.4 KB)
gibberish_small_3pgs.extract.docx (28.8 KB)