convert_pdf
Detect text layer in PDF and convert each page to an image for multimodal question splitting. Supports custom DPI and page limits.
Instructions
PDF → 文字层检测 + 按页转图(多模态拆题的原料)。确定性 pymupdf,非 OCR。
🔴 拆题一律以页图多模态直读为准(H1a:文字层公式不可信);text_layer 仅辅助(题号定位/纯文字题)。 参数: pdf_path 绝对路径;batch 页图文件名前缀(空=文件名主干);dpi 渲染精度(170 实测够);max_pages 限页(0=全部)。 返回: {ok, page_count, has_text_layer, pages:[页图路径...], text_layer_path?}。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| batch | No | ||
| pdf_path | Yes | ||
| max_pages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||