Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
refactor(utils): comment out Chinese font check on Windows
myhloli658e6bc768b8
diff --git a/magic_pdf/utils/office_to_pdf.py b/magic_pdf/utils/office_to_pdf.pyindex f8cc445a..0225383f 100644--- a/magic_pdf/utils/office_to_pdf.py+++ b/magic_pdf/utils/office_to_pdf.py@@ -21,13 +21,14 @@ def check_fonts_installed():if system_type == 'Windows':# Windows: check fonts via registry or system font folder- font_dir = Path("C:/Windows/Fonts")- installed_fonts = [f.name for f in font_dir.glob("*.ttf")]- if any(font for font in REQUIRED_CHS_FONTS if any(font in f for f in installed_fonts)):- return True- raise EnvironmentError(- f"Missing Chinese font. Please install at least one of: {', '.join(REQUIRED_CHS_FONTS)}"- )+ # font_dir = Path("C:/Windows/Fonts")+ # installed_fonts = [f.name for f in font_dir.glob("*.ttf")]+ # if any(font for font in REQUIRED_CHS_FONTS if any(font in f for f in installed_fonts)):+ # return True+ # raise EnvironmentError(+ # f"Missing Chinese font. Please install at least one of: {', '.join(REQUIRED_CHS_FONTS)}"+ # )+ passelse:# Linux/macOS: use fc-listtry: