update to use annotations-by-receiver for iteration
This commit is contained in:
parent
74f444a8d6
commit
39936792aa
@ -70,13 +70,15 @@ Namespace Jobs.FinalizeDocument
|
||||
|
||||
Private Sub AddInstantJSONAnnotationToPDF(pInstantJSON As String)
|
||||
Dim oAnnotationData = JsonConvert.DeserializeObject(Of AnnotationData)(pInstantJSON)
|
||||
oAnnotationData.annotations.Reverse()
|
||||
|
||||
Dim yPosOfSigAnnot = oAnnotationData.annotations.ElementAt(2).bbox.ElementAt(1) - 71.84002685546875 + 7
|
||||
For Each annots In oAnnotationData.AnnotationsByReceiver
|
||||
annots.Reverse()
|
||||
|
||||
Dim yPosOfSigAnnot = annots.ElementAt(2).bbox.ElementAt(1) - 71.84002685546875 + 7
|
||||
Dim isSeal = True 'First element is signature seal
|
||||
|
||||
Dim formFieldIndex = 0
|
||||
For Each oAnnotation In oAnnotationData.annotations
|
||||
For Each oAnnotation In annots
|
||||
Logger.Debug("Adding AnnotationID: " + oAnnotation.id)
|
||||
|
||||
Select Case oAnnotation.type
|
||||
@ -105,6 +107,8 @@ Namespace Jobs.FinalizeDocument
|
||||
|
||||
isSeal = False
|
||||
Next
|
||||
Next
|
||||
|
||||
End Sub
|
||||
|
||||
Private Function AddImageAnnotation(pAnnotation As Annotation, pAttachments As Dictionary(Of String, Attachment)) As Void
|
||||
@ -187,7 +191,7 @@ Namespace Jobs.FinalizeDocument
|
||||
|
||||
Friend Class Annotation
|
||||
|
||||
Private _id As Integer
|
||||
Private _id As String
|
||||
|
||||
Public envelopeId As Integer
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user