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

Free Support Forum - aspose.com

Copy all styles from one paragraph to another

Hi support team,
I’ trying to copy all styles from one paragraph to another, but until now with no sucess.
The only way that I’m able to copy, is setting each property like this:


But sometimes the paragraphSource break font attribute does not correspond to the real properties.

I’m using aspose words for java.
Is there any way to do this correctly?
Kind regards,
Paulo Pereira


To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:

  • Your simplified input Word document
  • Aspose.Words 19.4 generated output document showing the undesired behavior
  • Your expected document showing the correct output. You can create expected document by using MS Word.
  • Please also create a simplified standalone Java application (source code without compilation errors) that helps us to reproduce your current problem on our end and attach it here for testing. Please do not include Aspose.Words JAR files in it to reduce the file size.

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.