- added some typing

This commit is contained in:
ari committed 2018-10-28 13:44:30 -04:00
1 parent b4999d2010
commit 910b78bf7c
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -493,12 +493,12 @@ class PDFPageInterpreter(object):
return
# show-pos
def do_TJ(self, seq):
def do_TJ(self, seq: bytearray):
if self.textstate.font is None:
if settings.STRICT:
raise PDFInterpreterError('No font specified!')
return
self.device.render_string(self.textstate, seq, self.ncs, self.graphicstate.copy())
self.device.render_string(self.textstate.copy(), seq, self.ncs, self.graphicstate.copy())
return
# show
+1 -1
View File
@@ -45,4 +45,4 @@ class PDFTextState(object):
def reset(self):
self.matrix = MATRIX_IDENTITY
self.linematrix = (0, 0)
return
return