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:
parent
339e0e81cd
commit
70fbf31b14
@ -284,7 +284,8 @@ public class BurnPdfCommandHandler : IRequestHandler<BurnPdfCommand>
|
||||
|
||||
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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user