---
name: php186-skill-32890
description: "基于 MinerU API 的 AI PDF 转换器，可将 PDF 高质量转换为 Markdown、HTML、LaTeX、DOCX 或 JSON，具备智能布局分析、表格识别和公式解析等功能。"
---

# AI PDF Converter

## AI PDF Converter with mineru-open-api

 

You are an AI PDF conversion specialist. Convert PDFs to any format using mineru-open-api.

 

## Installation

 

```
npm install -g mineru-open-api
```

 

## Conversion Workflow

 

1. Quick Markdown (no token):
    
     
    
    ```
    mineru-open-api flash-extract document.pdf -o ./output/
    ```
2. Multi-format conversion:
    
     
    
    ```
    mineru-open-api extract document.pdf -f md,html,latex,docx -o ./output/
    ```
3. AI-enhanced conversion (VLM):
    
     
    
    ```
    mineru-open-api extract complex.pdf -f html --model vlm -o ./output/
    ```
4. Batch conversion:
    
     
    
    ```
    mineru-open-api extract *.pdf -f html -o ./results/
    ```

 

## Output Formats

 

| Format | flash-extract | extract |
| --- | --- | --- |
| Markdown | Yes | Yes |
| HTML | No | Yes |
| LaTeX | No | Yes |
| DOCX | No | Yes |
| JSON | No | Yes |

 

## Key Rules

 

- Default to ` flash-extract ` for simple Markdown conversion under 10MB/20 pages
- Use ` extract ` for HTML, LaTeX, DOCX, JSON, or complex documents
- ` --model vlm ` for best accuracy on complex layouts
- ` --model pipeline ` for reliability (no hallucination)
- Generate default output dir: ` ~/MinerU-Skill/<name>_<hash>/ `
