From 70fbf31b14696edf169a01c4a40fab6cf6b8abda Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 7 Nov 2025 13:09:54 +0100 Subject: [PATCH] feat(BurnPdfCommandHandler): implement AddImageAnnotation for base64 images - Added implementation for AddImageAnnotation(double x, double y, double width, double height, int page, string base64) - Allows embedding images directly from base64 into PDF pages - Existing annotation burning logic remains unchanged --- EnvelopeGenerator.Application/Pdf/BurnPdfCommand.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EnvelopeGenerator.Application/Pdf/BurnPdfCommand.cs b/EnvelopeGenerator.Application/Pdf/BurnPdfCommand.cs index 86d36920..8bb3dc42 100644 --- a/EnvelopeGenerator.Application/Pdf/BurnPdfCommand.cs +++ b/EnvelopeGenerator.Application/Pdf/BurnPdfCommand.cs @@ -284,7 +284,8 @@ public class BurnPdfCommandHandler : IRequestHandler private void AddImageAnnotation(double x, double y, double width, double height, int page, string base64) { - throw new NotImplementedException(); + _manager.SelectPage(page); + _manager.AddEmbeddedImageAnnotFromBase64(base64, (float)x, (float)y, (float)width, (float)height); } private void AddImageAnnotation(Annotation pAnnotation, Dictionary pAttachments)