More FileOpen fixes

This commit is contained in:
NoDRM 2023-12-21 11:57:39 +01:00
parent 737d5e7f1e
commit 5492dcdbf4
2 changed files with 2 additions and 2 deletions

View File

@ -2042,7 +2042,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:

View File

@ -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: