Show/hide bookmarks

I want a java aspose words api which can hide/ show marked bookmarks in word document through java program.

I am waiting for reply. Please let me know ASAP. Its urgent.

Thanks in advance

Hi
Thanks for your inquiry. You can just remove bookmarked content. Please see the following link for more information.
https://docs.aspose.com/words/net/working-with-bookmarks/
For example you can use the following code to remove bookmarked content.
bookmark.setText(“”);
Also please attach your document for testing and provide more information about your needs.
Best regards.

Thanks.

Thats fine.

What I want is how can we see the gray colored brackets through java and not through word options.

Thanks.

Hi
Thanks for your inquiry. It is not quite clear for me what you mean. Could you please attach sample document? I will investigate the document and try to help you.
Best regards.

Ya sure I am attaching a word document marked with bookmarks.

Thanks.

Hi
Thank you for additional information. These gray brackets are represented as BookmarkStart and BookmarkEnd nodes in Aspose.Words Document object model. See the following link for more information.
https://reference.aspose.com/words/net/aspose.words/bookmarkstart/
Hope this helps.
Best regards.