I am using Aspose Words (Java) to generate a document (PDF or Word depending on user selection). This is a fairly long document with numbered sections. At the end of the document there are ‘easy read notes’ corresponding to each section in the main body of the document. Each note is numbered to match the section it applies to.
The user is able to remove or edit the sections in the main body of the document, or remove them all together.
We have a requirement to remove the note if the user either removes or edits the section. This works fine for the case where the section is removed - I remove both the section and its notes and the numbering remains consistent. However, if I remove a note for a section that is still present, the numbering of subsequent notes no longer matches.
How would I go about removing the note but leave the ordering of subsequent notes unchanged?
Thanks in advance for any advice you can give me,