diff --git a/babeldoc/document_il/frontend/il_creater.py b/babeldoc/document_il/frontend/il_creater.py index 5c25fd93..0b825a09 100644 --- a/babeldoc/document_il/frontend/il_creater.py +++ b/babeldoc/document_il/frontend/il_creater.py @@ -313,6 +313,12 @@ def on_lt_char(self, char: LTChar): pdf_style=pdf_style, xobj_id=char.xobj_id, ) + if pdf_style.font_size == 0.0: + logger.warning( + "Font size is 0.0 for character %s. Skip it.", + char_unicode, + ) + return self.current_page.pdf_character.append(pdf_char) def create_il(self):