Skip to content

Commit

Permalink
fix: oops! no! A takes precedence
Browse files Browse the repository at this point in the history
To quote: Note: If both the A and C entries are present and a given attribute is specified by both, the one specified by the A entry takes precedence.
  • Loading branch information
dhdaines committed Aug 10, 2023
1 parent 2614c6e commit 5a18a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdfplumber/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _make_attributes(
self, obj: Dict[str, Any], revision: Optional[int]
) -> Dict[str, Any]:
attr_obj_list = []
for key in "A", "C":
for key in "C", "A":
if key not in obj:
continue
attr_obj = resolve1(obj[key])
Expand Down

0 comments on commit 5a18a82

Please sign in to comment.