0
Trigger SAVE Programmatically - Embed API
New Here
,
/t5/acrobat-services-api-discussions/trigger-save-programmatically-embed-api/td-p/13105321
Jul 31, 2022
Jul 31, 2022
Copy link to clipboard
Copied
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
TOPICS
PDF Embed API
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Have something to add?
Join the conversation

