Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pubpub-zz committed Sep 19, 2024
1 parent 6e7dc23 commit c983e15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypdf/_doc_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ def _get_outline(
# §12.3.3 Document outline, entries in the outline dictionary
if not is_null_or_none(lines) and "/First" in lines:
node = cast(DictionaryObject, lines["/First"])
self._namedDests = self._get_named_destinations()
self._named_destinations = self._get_named_destinations()

if node is None:
return outline
Expand Down Expand Up @@ -996,7 +996,7 @@ def _build_outline_item(self, node: DictionaryObject) -> Optional[Destination]:
# TODO : keep named destination instead of replacing it ?
try:
outline_item = self._build_destination(
title, self._namedDests[dest].dest_array
title, self._named_destinations[dest].dest_array
)
except KeyError:
# named destination not found in Name Dict
Expand Down

0 comments on commit c983e15

Please sign in to comment.