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

Free Support Forum - aspose.com

Issue with importing paragraph from doc 1 to new doc2

Following are the steps used for inserting paragraph node from one document to anothe new document.

Document artTextDoc = new Document();
NodeImporter importer = new NodeImporter(doc, artTextDoc, ImportFormatMode.KEEP_SOURCE_FORMATTING);
Section artTextDocSec = new Section(artTextDoc);
Body artTextDocBody = new Body(artTextDoc);

Node importNode = importer.importNode(para, true);


This creates a new document but a blank page is inserted at the begining of a new document.


Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please attach the expected output Word file that shows the desired behavior.
  • Please create a simple Java application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.