- added some typing
This commit is contained in:
1 parent
b4999d2010
commit
910b78bf7c
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||
|
||||
@@ -45,4 +45,4 @@ class PDFTextState(object):
|
||||
def reset(self):
|
||||
self.matrix = MATRIX_IDENTITY
|
||||
self.linematrix = (0, 0)
|
||||
return
|
||||
return
|
||||
Reference in new issue
Block a user