Universal PDF Vision Parser Skill
Version: 0.1
This skill is a high-end multilingual document digitizer. It uses multimodal vision to 'look' at each PDF page, making it perfect for language learning notes, bilingual documents, and complex layouts that standard OCR fails to capture.
Prerequisites
- DashScope API Key: A valid key from Alibaba Cloud Bailian with
qwen-vl-maxaccess. - Environment:
pip install pymupdf dashscope
Usage
Basic Command
python scripts/vision_parse.py --pdf <path_to_pdf> --out <path_to_output.md> --api-key <YOUR_API_KEY> --max-pages 2
--max-pages: (Optional) Max pages to process. Defaults to2. Set to-1for all pages.
Agentic Workflow
- Visual Scanning: Converts PDF pages to 300 DPI PNGs.
- Expert Transcription: Qwen-VL-Max identifies the language and transcribes terms, translations, and explanations.
- Markdown Structuring: Automatically formats content with bold keywords, italicized meanings, and clean tables.
Examples
User: "Convert this German-Chinese note to markdown: notes.pdf"
Agent Action:
python scripts/vision_parse.py --pdf notes.pdf --out notes.md