how to save annotation properties and load annotation properties in vieware

Discussions about DocuVieware integration in GdPicture.NET.
Post Reply
senthil205
Posts: 11
Joined: Tue Feb 07, 2023 6:19 am

how to save annotation properties and load annotation properties in vieware

Post by senthil205 » Tue Feb 07, 2023 6:24 am

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.,

User avatar
Fabio
Posts: 173
Joined: Thu Aug 27, 2020 9:57 am

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

Post by Fabio » Fri Feb 17, 2023 7:05 pm

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

senthil205
Posts: 11
Joined: Tue Feb 07, 2023 6:19 am

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

Post by senthil205 » Thu Jun 08, 2023 6:50 am

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 3393 times
2.png
3.png

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest