Copy link to clipboard
Copied
I am using Adobe Embeded Javascript API
when i add comment in the PDF then it gets flushed out after refreshing page.
I want to persist these comments even after refreshing the page.
how can i do it?
Copy link to clipboard
Copied
When you refresh the page, you are reloading the uncommented PDF file from the server so you won't see any comments previously added.
But I'm unclear as to how you want it to work. When the comments are saved, do you want the comments to be private to each user where they get reloaded on each visit, or do you want to update the file on the server every time anyone makes a comment... or something else?
Copy link to clipboard
Copied
We have to update the file on the server every time and anyone can makes a comment.
How we can do this?
could you please help us?
Copy link to clipboard
Copied
Please refer to this documentation
https://www.adobe.com/devnet-docs/dcsdk_io/viewSDK/howtos_ui.html#save-a-pdf
Copy link to clipboard
Copied
with the help of above url getting updated pdf content .
It's saving but in another file i.e "Piping Drawing.pdf" but i want to save comments in same file i.e mentioned in url "../Sample Searchable PDF.pdf" .
how we can achieve it?
example:
Copy link to clipboard
Copied
Can you provide us the snippet of the Save Callback you have registered?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
You need to write your file update implementation in the saveApiHandler, in which you can use the content buffer provided as an argument to update the file at the desired location.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I am not sure whether you are following the documentation or not. You need not to have any annotation manager for your use-case.
As described in the comment of saveApiHandler itself that /* Dummy implementation of Save API, replace with your business logic */, So, you have to write the code for uploading the content of the file in your desired location (where the file is residing currently).
Copy link to clipboard
Copied
Copy link to clipboard
Copied
There are multiple methods. I have an example here that converts the content to a base64 string and then constructs a URL to save the file.
Copy link to clipboard
Copied
Unable to see exiting comments text ? could you please help?
I am doing this in angular i can Add,Edit Delete comments but after save not able to see comments text.
Copy link to clipboard
Copied
Hello,
 
Copy link to clipboard
Copied
We would like to apologize for the inconvenience. Ideally, it should work after registering the GET_USER_PROFILE_API callback in the documented way https://www.adobe.com/devnet-docs/dcsdk_io/viewSDK/howtos_ui.html#user-profiles.
Could you please confirm if you are following the same? Also, if we can get the code snippet (configurations) you used with PDF Embed API for your website.
Copy link to clipboard
Copied
Yes Refering the same.
Attached snippet could you please check and let me know It's in angular
Copy link to clipboard
Copied
I'm not proficient at Angular. Sorry.
Copy link to clipboard
Copied
I show examples of creating and setting the user profile at this CodePen