Skip to content

Commit

Permalink
Add utils.resolve (non-recursive .resolve_all)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvine committed Jul 31, 2020
1 parent c4156d6 commit 7a90630
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pdfplumber/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ def decode_psl_list(_list):
]


def resolve(x):
if type(x) == PDFObjRef:
return x.resolve()
else:
return x


# via pdfminer.pdftypes, altered slightly
def resolve_all(x):
"""
Expand Down

0 comments on commit 7a90630

Please sign in to comment.