Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

fix: classif pdf type

xu rui712d7d4a8d06
diff --git a/magic_pdf/tools/common.py b/magic_pdf/tools/common.py
index b89159bc..f41a1601 100644
--- a/magic_pdf/tools/common.py
+++ b/magic_pdf/tools/common.py
@@ -186,7 +186,7 @@ def do_parse(
image_writer, debug_mode=True, lang=lang
)
else:
- pipe_result = infer_result.pipe_txt_mode(
+ pipe_result = infer_result.pipe_ocr_mode(
image_writer, debug_mode=True, lang=lang
)