From 35a328f8dc560f4986b33fa2745db0e14149e6d3 Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 28 Oct 2025 16:56:00 +0100 Subject: [PATCH] feat(pdfburner): adjust background rendering in BurnElementAnnotsToPDF - Added scaling factors (1.95 * 0.93, 2.52 * 0.67) to the background generation step - Included TODO note to calculate length dynamically based on largest Y value - Improved visual accuracy of PDF background rendering for element annotations --- .../Jobs/FinalizeDocument/PDFBurner.vb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb b/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb index be6549bf..f6379ef9 100644 --- a/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb +++ b/EnvelopeGenerator.CommonServices/Jobs/FinalizeDocument/PDFBurner.vb @@ -50,7 +50,8 @@ Namespace Jobs.FinalizeDocument Public Function BurnElementAnnotsToPDF(pSourceBuffer As Byte(), elements As List(Of Signature)) As Byte() ' Add background Using doc As Pdf(Of MemoryStream, MemoryStream) = Pdf.FromMemory(pSourceBuffer) - pSourceBuffer = doc.Background(elements).ExportStream().ToArray() + 'TODO: take the length from the largest y + pSourceBuffer = doc.Background(elements, 1.9500000000000002 * 0.93, 2.52 * 0.67).ExportStream().ToArray() Dim oResult As GdPictureStatus Using oSourceStream As New MemoryStream(pSourceBuffer)