Dear Awais,
I request to skip the bookmarks in heading parts from document.
I already done skip the heading parts in documents, when that document headings are applied in style of “Heading” using below condition.
String value = para.getParagraphFormat().getStyleName();
if (value.startsWith("Heading")
if (value.startsWith("Heading 1")
if (value.startsWith("Heading 2")
This comment working Fine. But Now i need to skip without applied styles in document mean how to skip that headings part ?.
Please give solution for this scenario.