I want to store some information in the metadata of the document. This storage event takes place at a button click event on my UI. The user can click the button N number of times, and the storage will take place N times too (depending on whether the information has not already been stored). I found many examples on the internet pertaining to this, for eg., XMP-Toolkit-SDK, and XMPCore libraries for Action Script. But, I found that both these methods required that the document be saved to disk at the time of managing the XMP data. This has become a hurdle to my plugin, as it is not mandatory that when user clicks the button on the UI, the document is saved.
Please guide, as to what should be the correct way to go about this.