Thanks for your inquiry. You can use the Clone method of your Document object to create a deep clone of the document into memory. Please see the following link to learn more:
Thanks for your answer.
Thanks for your request. Actually, the last paragraph of your document is empty. Please see the attached screenshot.
But if you would like to move the last paragraph of your document to the new document, you should use the code like the following:
Document doc = new Document("C:\\Temp\\test.docx");
// Create an empty intermediate document.
Document temp = new Document();
// Copy the last paragraph of source document into temp document.
temp.FirstSection.Body.AppendChild(temp.ImportNode(doc.FirstSection.Body.LastParagraph, true, ImportFormatMode.KeepSourceFormatting));
Thanks for your answer. It works well.
Thanks for your inquiry. Yes of course it is possible. In this case you should create clone of the original document and then remove all content (using RemoveAllChildren method). After these manipulations you will get new empty document with all styles from the original.
Also please follow the link to learn how to insert elements into the document: