Hi all,
When using the addAnnotation, it requires a specific object withthese properties:Author
CustomData
DateModified
elementName
selectionModel
Height
Hidden
Invisible
Printable
ReadOnly
Locked
LockedContents
Id
IsAdded
IsDeleted
IsModified
Listable
NoMove
NoResize
NoRotate
NoDelete
NoZoom
NoView
ToggleNoView
PageNumber
Subject
Width
X
Y
Rotation
RotationControlEnabled
MaintainAspectRatio
isClickableOutsideRect
ToolName
But when getting the annotation info in annotationChanged event, i get a whole different object with different properties:
{ Subject: ‘Highlight’, aC:1, ww:173.31823999999995, yw:122.396, es:53.55503999999999, ds:12.143999999999991, gp:0, hp:null, zJ:0, FJ:true, Wf:{}, YB:true, eW:false, yJ:true, ZB:false, fW:false, xJ:false, NoZoom:false, NoRotate:false, CJ:true, bl:{ R:255, G:205, B:69, A:1 }, PJ:‘Guest’, nC:‘2021-06-27T12:10:06.511Z’, Uw:‘182fd51a-0b1e-bfe5-aebf-22d5241f99fa’, AC:true, an:false, BK:false, cL:{}, Fj:[], ti:null, vg:null, le:null, HA:null, xG:null, yj:null, zj:null, UK:1, aK:‘2021-06-27T12:10:06.511Z’, nx:null, BJ:null, DJ:null, Ob:[{ x1:173.31823999999995, y1:134.54, x2:226.87327999999994, y2:134.54, x3:226.87327999999994, y3:122.396, x4:173.31823999999995, y4:122.396 }], ih:false, vx:null, TextIndices:null, SurroundingTexts:null, ‘_xsi:type’: ‘Highlight’, Mb:null, BlendMode: ‘multiply’, x7: ‘מספקות הוא’, ToolName: ‘AnnotationCreateTextHighlight’ }
How can i save an annotation to my db and then add it to the document?