From 23e0e5ddbedf3950ccd6713ba010c26df35d31e1 Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 28 Oct 2025 16:40:06 +0100 Subject: [PATCH] fix(pdfburner): correct annotation X-coordinate handling in BurnElementAnnotsToPDF Adjusted logic in `BurnElementAnnotsToPDF` to properly use annotation X position (`annot.X / inchFactor`) instead of offset-based calculation with `frameX` and `frameXShift`. This ensures more accurate placement of form fields and images when burning annotations into PDFs. --- .../Jobs/FinalizeDocument/PDFBurner.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb b/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb index d97bc076..be6549bf 100644 --- a/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb +++ b/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb @@ -86,10 +86,10 @@ Namespace Jobs.FinalizeDocument Dim y = frameY + yOffsetofFF If annot.Type = AnnotationType.FormField Then - AddFormFieldValue(frameX, y, annot.Width / inchFactor, annot.Height / inchFactor, element.Page, annot.Value) + AddFormFieldValue(annot.X / inchFactor, y, annot.Width / inchFactor, annot.Height / inchFactor, element.Page, annot.Value) ElseIf annot.Type = AnnotationType.Image Then AddImageAnnotation( - If(annot.Name = "signature", (annot.X - frameXShift) / inchFactor, frameX), + annot.X / inchFactor, If(annot.Name = "signature", (annot.Y - frameYShift) / inchFactor, y), annot.Width / inchFactor, annot.Height / inchFactor,