Question
STATUS_API won't trigger after once
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.
