Skip to main content
Participant
April 29, 2021
Question

STATUS_API won't trigger after once

  • April 29, 2021
  • 1 reply
  • 440 views
Hi,
 
We are trying to use the PDF Embed API in one of our works. We can view our PDF file and do annotate the PDF using the API. But we have the use case to check the status of the file modification only when the user edits the PDF(So that filePollFrequency is set as 0). We tried the below code to check the status,
 
 

 

adobeDCView.registerCallback(
    AdobeDC.View.Enum.CallbackType.STATUS_API,
    function (metaData) {
      //Logic to check modicication by other users.
      return new Promise((resolve, reject) => {
        resolve({
          code: AdobeDC.View.Enum.ApiResponseCode.SUCCESS, // Return true if there in no modification.
        });
      });
    },
    {
      filePollFrequency: 0,
      keepPolling: false,
    }
  );

 

 
As mentioned in the documentation, By default the callback will trigger when the user edits the PDF.
 
Our issue: The STATUS_API callback triggers only once when the user edits. The callback won't trigger when the user edits again once after the Save.
 
Is this expected? If not, please let us know where I'm going wrong.
This topic has been closed for replies.

1 reply

Joel Geraci
Community Expert
Community Expert
April 29, 2021

Exactly which edits are not triggering a status callback?

Participant
April 29, 2021

Any edits, such as Sticky note, Highlight, Comment, and Drawing.