Page 1 of 1

how to save annotation properties and load annotation properties in vieware

Posted: Tue Feb 07, 2023 6:24 am
by senthil205
Hi sir,

I use Docuvieware for viewing the file, i annotate value in viewer i can save the file in locally download.

 i need to save annotation in table and how to retrieve the value and load annotation in viewer for same file also need to get annotation properties like position , height , weight , page index etc.,

Re: how to save annotation properties and load annotation properties in vieware

Posted: Fri Feb 17, 2023 7:05 pm
by Fabio
Hi Sir,

You can get all information related to the annotations by using 2 javascript methods.

1/ Get annotation ID

Code: Select all

DocuViewareAPI.GetPageAnnotId("DocuVieware4", 1, 0);
2/ Get the annotation's properties

Code: Select all

DocuViewareAPI.GetAnnotProperties("DocuVieware4", 'ID YOU GOT FROM PREVIOUS METHOD');
If you want to save them, you can simply save the returned JSON object from the second method and use it.

If you want to save/load the annotations, you can use these 2 server-side methods:
https://www.docuvieware.com/guides/aspn ... tions.html
https://www.docuvieware.com/guides/aspn ... ions.html

Best regards,
Fabio

Re: how to save annotation properties and load annotation properties in vieware

Posted: Thu Jun 08, 2023 6:50 am
by senthil205
Hi fabio

I need to stroke color, fore color, fill color etc,. to save database for next load annotation.

width, top, height, left i got default in every where in viewer
1.png
1.png (7.92 KiB) Viewed 6078 times
2.png
3.png