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.
This commit is contained in:
tekh 2025-10-28 16:40:06 +01:00
parent 0bb85c28c1
commit 23e0e5ddbe

View File

@ -86,10 +86,10 @@ Namespace Jobs.FinalizeDocument
Dim y = frameY + yOffsetofFF Dim y = frameY + yOffsetofFF
If annot.Type = AnnotationType.FormField Then 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 ElseIf annot.Type = AnnotationType.Image Then
AddImageAnnotation( AddImageAnnotation(
If(annot.Name = "signature", (annot.X - frameXShift) / inchFactor, frameX), annot.X / inchFactor,
If(annot.Name = "signature", (annot.Y - frameYShift) / inchFactor, y), If(annot.Name = "signature", (annot.Y - frameYShift) / inchFactor, y),
annot.Width / inchFactor, annot.Width / inchFactor,
annot.Height / inchFactor, annot.Height / inchFactor,