Free Support Forum - aspose.com

DOCX paragraph identifiers

Hello,


How can I get paragraph identifier from a DOCX document.

Example :

NodeCollection nodesParagraph = body.getChildNodes(NodeType.PARAGRAPH, true);
for(int i = 0; i< nodesParagraph.getCount(); i++){
Paragraph para = (Paragraph)noeudsParagraph.get(i);
//How to get para object identifier ?
}

Thanks in advance for your answer.

Regards,

Benoît Hénaud

Hello

Thanks for your request. Unfortunately, there is no way to get paragraph identifier using Aspose.Words. Could you please describe your requirement little bit deeply, maybe I will find other way to achieve what you need?

I think in your case you can try using bookmarks, please follow the link to learn how to work with bookmarks:

http://www.aspose.com/documentation/java-components/aspose.words-for-java/working-with-bookmarks.html

Best regards,