feat(PDFBurnerParams): add DefaultIndexOfAnnot and GetAnnotationIndex
- add `DefaultIndexOfAnnot` property to provide a fallback index for annotations - add `GetAnnotationIndex(string name)` method to safely retrieve an annotation index, returning default if not found
This commit is contained in:
@@ -256,7 +256,7 @@ public class BurnPdfCommandHandler : IRequestHandler<BurnPdfCommand>
|
||||
|
||||
private void AddFormFieldValue(Annotation pAnnotation, FormFieldValue formFieldValue)
|
||||
{
|
||||
var ffIndex = _pdfBurnerParams.IndexOfAnnot[pAnnotation.EgName];
|
||||
var ffIndex = _pdfBurnerParams.GetAnnotationIndex(pAnnotation.EgName);
|
||||
|
||||
// Convert pixels to Inches
|
||||
var oBounds = pAnnotation.Bbox?.Select(ToInches).ToList();
|
||||
|
||||
Reference in New Issue
Block a user