Hi,
I have an RTF file which is inserted to a DOCX document and the document is saved. In the RTF document we have some page break styling used as follows:
test
But when the RTF is inserted in the DOCX document, there is an exception about the page break:
java.lang.IllegalStateException: You cannot insert document with this content into this location.
at com.aspose.words.zz81.zzZ(Unknown Source)
at com.aspose.words.DocumentBuilder.insertDocument(Unknown Source)
I have tested this issue with the latest version of Aspose word (16.10.0). I have attached the sample RTF file to reproduce the issue on your side.
I have also attached the sample JAVA code to test the issue.
Regards,
Prabhaker Kr.