Skip to main content
Participant
August 1, 2022
質問

Trigger SAVE Programmatically - Embed API

  • August 1, 2022
  • 返信数 0.
  • 431 ビュー

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.

 

  1. Is there a way to trigger SAVE programmatically?
  2. 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

 
このトピックへの返信は締め切られました。