Trigger SAVE Programmatically - Embed API
I want to use the Annotation feature in Embed API - but I don't want to rely on its "Save" button.
Is there a way to trigger "Save" programmatically?
I tried the enableFocusPolling. Even with enableFocusPolling=true, it takes aroud 2 seconds after the annotation before SAVE_API is triggered.
This means that our fake-Save button does not have the latest copy of the PDF file.
- Is there a way to trigger SAVE programmatically?
- Is there a way to programmatically check if any changes are unsaved?
I have created this CodePen to illustrate this point: https://codepen.io/vmit/pen/JjMraxg
If you annotate something and click "Save PDF File" immediately, you don't get the latest changes.
Likes
