Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pdfx/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,11 @@ def resolve_PDFObjRef(self, obj_ref):

if "URI" in obj_resolved["A"]:
# print("->", a["A"]["URI"])
return Reference(obj_resolved["A"]["URI"].decode("utf-8"), self.curpage)
try:
reference = Reference(obj_resolved["A"]["URI"].decode("utf-8"), self.curpage)
except:
reference = Reference(obj_resolved["A"]["URI"].decode("ISO-8859-1"), self.curpage)
return reference


class TextBackend(ReaderBackend):
Expand Down