diff --git a/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb b/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb index 413a73d7..21ac1629 100644 --- a/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb +++ b/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb @@ -73,12 +73,14 @@ Namespace Jobs.FinalizeDocument Dim annotCountPerSign = 5 Dim annotIndex = 1 Dim calcSignIndex = Function() CInt(Math.Ceiling(CDbl(annotIndex) / CDbl(annotCountPerSign))) + Dim calcAnnotIndexInSign = Function() (annotIndex - 1) Mod annotCountPerSign + 1 Dim formFieldIndex = 0 For Each oAnnotation In oAnnotationData.annotations Logger.Debug("Adding AnnotationID: " + oAnnotation.id) Dim signIndex = calcSignIndex() + Dim annotIndexInSign = calcAnnotIndexInSign() Select Case oAnnotation.type Case ANNOTATION_TYPE_IMAGE