Determine if EndNotes in Word DOCX Document has 'End Of Section' or 'End Of Document" using Java

Reading word document end note to check whether it is end of section or end of document
word.JPG (104.1 KB)

Document doc = new Document("D:/NEW.docx");
doc.getEndnoteOptions().getPosition();

getPostion is not available in getEndnoteOptions where as in API Doc found that we can get it using getPostion method.

Please help! How to find the end note is end of document or end of section.

@SHOME,

We have logged your requirement in our issue tracking system. Your ticket number is WORDSNET-20216. We will further look into the details of this requirement and will keep you updated on the status of the linked issue. Sorry for any inconvenience.

@SHOME,

Regarding WORDSNET-20216, it is to update you that we have the Position property already available in Aspose.Words for Java API. To get the value of this property, please use the following code:

int endNotePositionValue = doc.getEndnoteOptions().getPosition();
String endNotePositionName = EndnotePosition.getName(doc.getEndnoteOptions().getPosition());

Hope, this helps in achieving what you are looking for.