feat(pdf): implement AddFormFieldValue for PDF annotations
- Added implementation for AddFormFieldValue method to properly add text annotations to PDF pages using AnnotationManager. - Preserves font settings from PDFBurnerParams. - Other annotation methods remain unimplemented.
This commit is contained in:
parent
5fa358ca79
commit
02c5f286ec
@ -254,9 +254,18 @@ public class BurnPdfCommandHandler : IRequestHandler<BurnPdfCommand>
|
||||
|
||||
private void AddFormFieldValue(double x, double y, double width, double height, int page, string value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
_manager.SelectPage(page);
|
||||
|
||||
// Add the text annotation
|
||||
var ant = _manager.AddTextAnnot((float)x, (float)y, (float)width, (float)height, value);
|
||||
|
||||
// Set the font properties
|
||||
ant.FontName = _pdfBurnerParams.FontName;
|
||||
ant.FontSize = _pdfBurnerParams.FontSize;
|
||||
ant.FontStyle = _pdfBurnerParams.FontStyle;
|
||||
|
||||
_manager.SaveAnnotationsToPage();
|
||||
}
|
||||
|
||||
private void AddFormFieldValue(Annotation pAnnotation, FormFieldValue formFieldValue)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user