summaryrefslogtreecommitdiffstats
path: root/DeDRM_plugin/ineptpdf.py
diff options
context:
space:
mode:
authorNoDRM <[email protected]>2023-12-03 10:45:09 +0100
committerNoDRM <[email protected]>2023-12-03 10:45:09 +0100
commit737d5e7f1e7e0763d9b5e42e3d0effb9c1dfc0ea (patch)
tree24818c6b027a5f425a888ff3a9465df51781b323 /DeDRM_plugin/ineptpdf.py
parente4e5808894f9ea7283dc7640d6510e5f045edba2 (diff)
Bunch of updates for the FileOpen script
Diffstat (limited to 'DeDRM_plugin/ineptpdf.py')
-rwxr-xr-xDeDRM_plugin/ineptpdf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/DeDRM_plugin/ineptpdf.py b/DeDRM_plugin/ineptpdf.py
index 6d53b95..15ea7fc 100755
--- a/DeDRM_plugin/ineptpdf.py
+++ b/DeDRM_plugin/ineptpdf.py
@@ -834,7 +834,7 @@ def num_value(x):
x = resolve1(x)
if not (isinstance(x, int) or isinstance(x, Decimal)):
if STRICT:
- raise PDFTypeError('Int or Float required: %r' % x)
+ raise PDFTypeError('Int or Decimal required: %r' % x)
return 0
return x
@@ -2042,7 +2042,7 @@ class PDFParser(PSStackParser):
except PDFNoValidXRef:
# fallback
self.seek(0)
- pat = re.compile(b'^(\\d+)\\s+(\\d+)\\s+obj\\b')
+ pat = re.compile(rb'^(\\d+)\\s+(\\d+)\\s+obj\\b')
offsets = {}
xref = PDFXRef()
while 1: