Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Trigger SAVE Programmatically - Embed API

New Here ,
Jul 31, 2022 Jul 31, 2022

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

 
TOPICS
PDF Embed API
351
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources