Aspose.zip (21.5 KB)
My organization uses aspose to manipulate word documents. Whenever we upgrade Aspose facing annoying issues and required more time to troubleshoot as well as implement some work-around to avoid any business interruption. This is also a similar kind of issue but I would hear some good approach from Aspose side. During extracting content from Bookmark using below code, Aspose throws an exception ( current version : aspose-words-20.4-jdk16)
CompositeNode cloneNode = (CompositeNode) currNode.deepClone( true );
Exception in thread “main” java.lang.ClassCastException: com.aspose.words.BookmarkEnd cannot be cast to com.aspose.words.CompositeNode at ExtractContentBetweenBookmarks.extractContent(ExtractContentBetweenBookmarks.java:91)
The same feature is worked well on 13.4 and organization uses the same java code provided by Aspose in order to extract content from Bookmark. Attached the sample documents.
Test_2.docx is working
Test_1.docx is not working.