Fix error on serializing bad character markers

(Since they held a reference to their font, which in turn, had an
open file handle.)
This commit is contained in:
James R. Barlow
2018-10-29 02:02:00 -07:00
parent 00ef53195e
commit efec6da377

View File

@@ -121,7 +121,7 @@ class TextPositionTracker(PDFLayoutAnalyzer):
def handle_undefined_char(self, font, cid):
#log.info('undefined: %r, %r', font, cid)
return (font, cid)
return (font.fontname, cid)
def receive_layout(self, ltpage):
self.result = ltpage