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

Save Callback Not Being Executed

Community Beginner ,
Nov 01, 2023 Nov 01, 2023

Copy link to clipboard

Copied

I have been using the Embed API and have been modifying code in lots of different ways.

Previously I remember when I would add an annotation, the save button would appear and a message at the top would say I have unsaved changes.

 

I finally got around to implementing the funcitonality for the SAVE_API callback, but now it seems the SDK is no longer identifying when a change has been made so the SAVE_API callback is never being fired. I have made some changes to my implementation like using a promise to load the PDF and added some custom logic on some annotation callback.  

Would anyone know why my SDK is no longer Identifying changes?

I'll be glad to provide more info if needed. 🙂

TOPICS
PDF Embed API

Views

238

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Beginner , Nov 01, 2023 Nov 01, 2023

Ah, this should have cued me in in the documentation. My next step was to include PDF annotations. 

quoteWhen only enableAnnotationAPIs is true, adding or updating annotations does not alter the original PDF content. When both these variables are true, the APIs alter the original PDF.



Votes

Translate

Translate
Community Expert ,
Nov 01, 2023 Nov 01, 2023

Copy link to clipboard

Copied

Were your changes just adding annotations or filling form fields? 

Votes

Translate

Translate

Report

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
Community Beginner ,
Nov 01, 2023 Nov 01, 2023

Copy link to clipboard

Copied

LATEST

Thanks for jumping in quickly. I found that setting both enableAnnotationAPIs and includePDFAnnotations (which I was planning to use anyway) to true gave me the behaviour I was expecting. Now I can use the annotation APIs and the PDF is directly modified directly.
Also, your codepens on the Embed API have saved me a lot of time learning this API. You are awesome.

Votes

Translate

Translate

Report

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
Community Beginner ,
Nov 01, 2023 Nov 01, 2023

Copy link to clipboard

Copied

Ah, this should have cued me in in the documentation. My next step was to include PDF annotations. 

quoteWhen only enableAnnotationAPIs is true, adding or updating annotations does not alter the original PDF content. When both these variables are true, the APIs alter the original PDF.



Votes

Translate

Translate

Report

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
Resources