Skip to content

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

fix: reduce maximum PDF render processes to improve resource management

myhlolib169958beb05
diff --git a/mineru/utils/pdf_image_tools.py b/mineru/utils/pdf_image_tools.py
index d06c7a05..80291ca3 100644
--- a/mineru/utils/pdf_image_tools.py
+++ b/mineru/utils/pdf_image_tools.py
@@ -33,7 +33,7 @@ from concurrent.futures.process import BrokenProcessPool
DEFAULT_PDF_IMAGE_DPI = 200
# DEFAULT_PDF_IMAGE_DPI = 144
-MAX_PDF_RENDER_PROCESSES = 3
+MAX_PDF_RENDER_PROCESSES = 1
MIN_PAGES_PER_RENDER_PROCESS = 30
PDF_RENDER_PROCESS_SPAWN_DELAY_SECONDS = 0.1
PDF_RENDER_TERMINATE_GRACE_PERIOD_SECONDS = 0.1