Is there anything I can do in Aspose that would work essentially the same as adding a CustomNodeId, but will persist in the document?
What I’d like to achieve is the following:
- Iterate through the document and add a unique ID to each paragraph (invisible to end users of the document in Word and cannot be deleted normally)
- Store the unique ID in an external database
- Later, fetch the ID from the database, open the document with Aspose.Words again and use the ID to locate the relevant paragraph in the document
We can’t use just the paragraph / node index, because the document will be edited by end users between steps 2 and 3 above.