Skip to main content
Participating Frequently
December 4, 2020
Question

comments flushed out after refreshing page

  • December 4, 2020
  • 2 replies
  • 1438 views

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?

This topic has been closed for replies.

2 replies

Participating Frequently
December 10, 2020
const saveApiHandler = (metaData: any, content:ArrayBuffer, options: any) => {
            console.log(metaData, content, options);
});
 
How can i get updated File object in saveApiHandler ?
I am stuck in writing updated content in File using Java.
Could you please tell If we can get File Object instead of Content.
Joel Geraci
Community Expert
December 10, 2020

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.

Participating Frequently
December 16, 2020

 

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.

 

Joel Geraci
Community Expert
December 4, 2020

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?

Participating Frequently
December 7, 2020

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?

Participating Frequently
December 7, 2020

Please refer to this documentation

https://www.adobe.com/devnet-docs/dcsdk_io/viewSDK/howtos_ui.html#save-a-pdf

 

 


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: 

content: {
            location: {
                url: "../Sample Searchable PDF.pdf",             
            },
        },
        metaData: {
            fileName: "Piping Drawing.pdf"
        }
 
 
after click on save all added comments should save in same file. and user can see it after refreshing page also.
now it saving another file how we can do it?