diff --git a/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb b/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb index 13160837..b2b1157d 100644 --- a/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb +++ b/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb @@ -71,6 +71,7 @@ Namespace Jobs.FinalizeDocument oAnnotationData.annotations.Reverse() Dim sigAnnotType = oAnnotationData.annotations.ElementAt(1).type + Dim yPosOfSigAnnot = oAnnotationData.annotations.ElementAt(2).bbox.ElementAt(1) - 71.84002685546875 + 7 Dim isSeal = True 'First element is signature seal Dim formFieldIndex = 0 @@ -79,9 +80,12 @@ Namespace Jobs.FinalizeDocument Select Case oAnnotation.type Case ANNOTATION_TYPE_IMAGE - 'Add offset to solve the seal position problem in ink signatures - Dim yOffset As Double = If(isSeal And sigAnnotType = ANNOTATION_TYPE_INK, 0.07, 0) - AddImageAnnotation(oAnnotation, oAnnotationData.attachments, yOffset) + + If (isSeal) Then + oAnnotation.bbox.Item(1) = yPosOfSigAnnot + End If + + AddImageAnnotation(oAnnotation, oAnnotationData.attachments) Case ANNOTATION_TYPE_INK AddInkAnnotation(oAnnotation)