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
This commit is contained in:
parent
d259a15b4b
commit
35a328f8dc
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user