diff --git a/pypdf/_doc_common.py b/pypdf/_doc_common.py index ba71e144d..0842219ca 100644 --- a/pypdf/_doc_common.py +++ b/pypdf/_doc_common.py @@ -840,8 +840,7 @@ def open_destination( return create_string_object(oa) elif isinstance(oa, ArrayObject): try: - page, typ = oa[0:2] - array = oa[2:] + page, typ, *array = oa fit = Fit(typ, tuple(array)) return Destination("OpenAction", page, fit) except Exception as exc: