diff --git a/pypdf/annotations/_markup_annotations.py b/pypdf/annotations/_markup_annotations.py index c5e0a2fed..4022fba2a 100644 --- a/pypdf/annotations/_markup_annotations.py +++ b/pypdf/annotations/_markup_annotations.py @@ -325,9 +325,9 @@ def __init__( border_arr: BorderArrayType if border is not None: - border_arr = [NameObject(n) for n in border[:3]] + border_arr = [NumberObject(n) for n in border[:3]] if len(border) == 4: - dash_pattern = ArrayObject([NameObject(n) for n in border[3]]) + dash_pattern = ArrayObject([NumberObject(n) for n in border[3]]) border_arr.append(dash_pattern) else: border_arr = [NumberObject(0)] * 3