mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-05-19 03:58:06 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user