We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Unexpected empty space while inserting document


I am inserting source into destination document. On the bottom of the destination document there was defined pilcrow glyph with specific formatting (bold + underline). I am inserting on the end of destination document, page break and than source document.

Source document starts with headline. After adding it to destination document on the very begging on that headline it was added empty space. That space has formatting same as pilcrow glyph. It is unexpected there. When doing the same in Office Word, there will not be empty space with specific formatting.

Code snippet :

public static void NK_PilcrowIssue()
Document destDoc = new Document(“Pilcrow01.docx”);
Document sourceDoc = new Document(“Pilcrow02.docx”);

DocumentBuilder builder = new DocumentBuilder(destDoc);
builder.InsertDocument(sourceDoc, ImportFormatMode.UseDestinationStyles);

string documentName = Guid.NewGuid() + “.docx”;
destDoc.Save(documentName, SaveFormat.Docx);

Destination document : Pilcrow01.docx
Source document : Pilcrow02.docx
Result (not OK) document : NK_Pilcrow_ResultNotOK
Expected document : NK_Pilcrow_Expected.docx

Hi Rastko,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-14438. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.


is there any update on this ?

Hi Rastko,

Thanks for your inquiry. Your issue has been resolved and its fix will be available in next version of Aspose.Words v16.12.0. We will inform you via this forum thread once new version of Aspose.Words is available.

Thanks for your patience.

Many thanks,


The issues you have found earlier (filed as WORDSNET-14438) have been fixed in this Aspose.Words for .NET 16.12.0 update and this Aspose.Words for Java 16.12.0 update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.