Hi,
When I use AppendDocument (Aspose.Words 10.4.0.0) on a source file that has embedded page breaks, an empty paragraph break is inserted after each page break in the destination.
Here is the code:
string MyDir = @"C:\Aspose Issue\AppendDocumentAddsEmptyPara\bin\";
Document dstDoc = new Document(MyDir + "Document.docx");
// The document to append.
Document srcDoc = new Document(MyDir + "FivePages.docx");
// Append the source document to the destination document.
// Pass format mode to retain the original formatting of the source document when importing it.
dstDoc.AppendDocument(srcDoc, ImportFormatMode.KeepSourceFormatting);
// Save the document.
dstDoc.Save(MyDir + "Document.AppendDocument Out.doc");
I’ve attached code and documents.
Thanks