STATUS_API won't trigger after once

New Here ,
Apr 29, 2021 Apr 29, 2021

Copy link to clipboard

Copied

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.
TOPICS
PDF Embed API

Views

46

Likes

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
Adobe Community Professional ,
Apr 29, 2021 Apr 29, 2021

Copy link to clipboard

Copied

Exactly which edits are not triggering a status callback?

Likes

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
New Here ,
Apr 29, 2021 Apr 29, 2021

Copy link to clipboard

Copied

LATEST

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

Likes

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