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
This commit is contained in:
tekh 2025-11-07 13:09:54 +01:00
parent 339e0e81cd
commit 70fbf31b14

View File

@ -284,7 +284,8 @@ public class BurnPdfCommandHandler : IRequestHandler<BurnPdfCommand>
private void AddImageAnnotation(double x, double y, double width, double height, int page, string base64) 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<string, Attachment> pAttachments) private void AddImageAnnotation(Annotation pAnnotation, Dictionary<string, Attachment> pAttachments)