Index Entries

Hi,

how can I mark entries using aspose? Entries are used for e.g. Index generation. If I create an entry using Word it looks like the following if linebreaks and so on are shown.

Lorem ipsum { XE “indexterm1” } dolor sit amet { XE “indexterm2” }.

The generated index looks as follows:

indexterm1, 1
indexterm2, 1

Best,
Tobias

Hi

Thanks for your inquiry. You can do exactly the same using Aspose.Words. You should use DocumentBuilder.insertField method to insert XE field. Please see the following link for more information:
https://reference.aspose.com/words/java/com.aspose.words/documentbuilder/#insertField-java.lang.String-java.lang.String
Best regards,