Extracting contents from bookmark

Hi

I’m following the example on this page to extract the contents of a Bookmark.
Working with Bookmarks in Java|Aspose.Words for Java
and it works fine.
But when I try it on one of our documents where we have formatted text located inside a table, it doesn’t quite work properly.
Can you confirm if it should work inside tables?
thanks

Hi Jane,

Thanks for your inquiry. It would be great if you please share following detail for investigation purposes.


  • Please attach your input Word document.
  • Please

    create a standalone/runnable simple Java application that demonstrates the code (Aspose.Words code) you used to generate
    your output document

  • Please attach the output Word file that shows the undesired behavior.
  • Please
    attach your target Word document showing the desired behavior. You can
    use Microsoft Word to create your target Word document. I will
    investigate as to how you are expecting your final document be generated
    like.

Unfortunately,
it is difficult to say what the problem is without the Document(s) and
simplified application. We need your Document(s) and simple project to
reproduce the problem. As soon as you get these pieces of information to
us we’ll start our investigation into your issue.

I’ve attached the 4 items you requested. The java code I’m using was pretty much taken directly from the example on your website and slightly tweaked in regard to folder/bookmark names.