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
feat: enhance PDF rendering options with thread count and timeout details
myhloli586a4fb06bf0
diff --git a/docs/en/usage/cli_tools.md b/docs/en/usage/cli_tools.mdindex 00e65cb8..0b9ef302 100644--- a/docs/en/usage/cli_tools.md+++ b/docs/en/usage/cli_tools.md@@ -77,7 +77,8 @@ Here are the environment variables and their descriptions:- `MINERU_MODEL_SOURCE`:* Used to specify model source* supports `huggingface/modelscope/local`- * defaults to `huggingface`, can be switched to `modelscope` or local models through environment variables.+ * Default is `huggingface`; you can switch via an environment variable to `modelscope` to use a domestic acceleration mirror, or switch to `local` to use a local model.+- `MINERU_TOOLS_CONFIG_JSON`:* Used to specify configuration file path@@ -101,8 +102,14 @@ Here are the environment variables and their descriptions:* Default is `true`, can be set to `false` via environment variable to disable table merging functionality.- `MINERU_PDF_RENDER_TIMEOUT`:- * Used to set the timeout period (in seconds) for rendering PDF to images- * Default is `300` seconds, can be set to other values via environment variable to adjust the image rendering timeout.+ * Used to set the timeout (in seconds) for rendering PDFs to images.+ * Default is `300` seconds; you can set a different value via an environment variable to adjust the rendering timeout.+ * Only effective on Linux and macOS systems.++- `MINERU_PDF_RENDER_THREADS`:+ * Used to set the number of threads used when rendering PDFs to images.+ * Default is `4`; you can set a different value via an environment variable to adjust the number of threads for image rendering.+ * Only effective on Linux and macOS systems.- `MINERU_INTRA_OP_NUM_THREADS`:* Used to set the intra_op thread count for ONNX models, affects the computation speed of individual operatorsdiff --git a/docs/zh/usage/cli_tools.md b/docs/zh/usage/cli_tools.mdindex c43f5f9f..0b386d44 100644--- a/docs/zh/usage/cli_tools.md+++ b/docs/zh/usage/cli_tools.md@@ -72,7 +72,7 @@ MinerU命令行工具的某些参数存在相同功能的环境变量配置,- `MINERU_MODEL_SOURCE`:* 用于指定模型来源* 支持`huggingface/modelscope/local`- * 默认为`huggingface`可通过环境变量切换为`modelscope`或使用本地模型。+ * 默认为`huggingface`可通过环境变量切换为`modelscope`使用国内加速源或切换至`local`以使用本地模型。- `MINERU_TOOLS_CONFIG_JSON`:* 用于指定配置文件路径@@ -98,6 +98,12 @@ MinerU命令行工具的某些参数存在相同功能的环境变量配置,- `MINERU_PDF_RENDER_TIMEOUT`:* 用于设置将PDF渲染为图片的超时时间(秒)* 默认为`300`秒,可通过环境变量设置为其他值以调整渲染图片的超时时间。+ * 仅在linux和macOS系统中生效。++- `MINERU_PDF_RENDER_THREADS`:+ * 用于设置将PDF渲染为图片时使用的线程数+ * 默认为`4`,可通过环境变量设置为其他值以调整渲染图片时的线程数。+ * 仅在linux和macOS系统中生效。- `MINERU_INTRA_OP_NUM_THREADS`:* 用于设置onnx模型的intra_op线程数,影响单个算子的计算速度