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: except PDFNoValidXRef:
# fallback # fallback
self.seek(0) self.seek(0)
pat = re.compile(rb'^(\\d+)\\s+(\\d+)\\s+obj\\b') pat = re.compile(br'^(\\d+)\\s+(\\d+)\\s+obj\\b')
offsets = {} offsets = {}
xref = PDFXRef() xref = PDFXRef()
while 1: while 1:

View File

@ -2643,7 +2643,7 @@ class PDFParser(PSStackParser):
except PDFNoValidXRef: except PDFNoValidXRef:
# fallback # fallback
self.seek(0) self.seek(0)
pat = re.compile(rb'^(\d+)\s+(\d+)\s+obj\b') pat = re.compile(br'^(\\d+)\\s+(\\d+)\\s+obj\\b')
offsets = {} offsets = {}
xref = PDFXRef() xref = PDFXRef()
while 1: while 1: