Skip to content

Commit

Permalink
More FileOpen fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
noDRM committed Dec 21, 2023
1 parent 737d5e7 commit 5492dcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DeDRM_plugin/ineptpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2042,7 +2042,7 @@ def read_xref(self):
except PDFNoValidXRef:
# fallback
self.seek(0)
pat = re.compile(rb'^(\\d+)\\s+(\\d+)\\s+obj\\b')
pat = re.compile(br'^(\\d+)\\s+(\\d+)\\s+obj\\b')
offsets = {}
xref = PDFXRef()
while 1:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2643,7 +2643,7 @@ class PDFParser(PSStackParser):
except PDFNoValidXRef:
# fallback
self.seek(0)
pat = re.compile(rb'^(\d+)\s+(\d+)\s+obj\b')
pat = re.compile(br'^(\\d+)\\s+(\\d+)\\s+obj\\b')
offsets = {}
xref = PDFXRef()
while 1:
Expand Down

0 comments on commit 5492dcd

Please sign in to comment.