Copy link to clipboard
Copied
I have problem when testing pdf editing collaboration on my local web containing pdf embed viewer, i've set some users but when opening the web from different browser and login as different user then saving some comments with FILE_MODIFIED scenario. this error show up
i've already set the user profile from get_user_profile_api but the popup not showing the details of user that making changes. is there any sample code for multi user modifying collaboration?
Copy link to clipboard
Copied
Hi,
Thanks for using PDF Embed API. It looks like you are not providing correct data in modifiedBy field. The dialog you got usually comes when the email id of user profile (from get_user_profile_api) and the one provided in modifiedBy are the same.
/* Status callback file modified case */
return new Promise((resolve, reject) => {
resolve({
code: AdobeDC.View.Enum.ApiResponseCode.FILE_MODIFIED,
data: {
modifiedBy: {
name: <Username of the user who modified the file>,
mail: <Email of the user who modified the file>,
}
}
});
});