Extract text, metadata, and pages from PDF files using pypdf. Use for tasks such as reading PDF content, extracting specific pages, splitting or merging PDFs...
设计与多媒体
pymupdf
试用Render PDF pages to images, extract embedded images, annotate PDFs, and perform advanced PDF inspection using pymupdf (fitz). Use for tasks such as exporting...
它能做什么
Render PDF pages to images, extract embedded images, annotate PDFs, and perform advanced PDF inspection using pymupdf (fitz). Use for tasks such as exporting...
技能文档
pymupdf
Use scripts/pymupdf_cli.py for deterministic pymupdf operations instead of ad-hoc fitz snippets.
Workflow
- Confirm the PDF file path is accessible locally.
- Run the desired command (export-images, extract-images, info).
- Inspect the output directory or stdout.
Command Guide
- Export pages as images:
python scripts/pymupdf_cli.py export-images --input --output-dir- Override format:
--format png(default),jpg, orppm. - Override resolution:
--dpi 300(default: 150). - Restrict to specific pages:
--pages 0 1 2.
- Extract images embedded inside a PDF:
python scripts/pymupdf_cli.py extract-images --input --output-dir- Optionally restrict to specific pages:
--pages 0 1 2.
- Inspect page dimensions and basic document info:
python scripts/pymupdf_cli.py info --input
Operational Rules
- Pages are always 0-indexed in all commands.
export-imagesrenders each page as a raster image at the specified DPI.extract-imagessaves raw image streams embedded in the PDF (e.g. photos, logos); output filenames include page index and image index.- Install dependency if missing:
pip install pymupdf. - For text extraction, splitting, merging, or rotating PDFs, use the pypdf skill instead.
相关技能
Convert unstructured documents into LLM-ready structured data. Supports PDF, Word, PPT, and images; extracts paragraphs, formulas, tables, charts, and other...
将 PDF 和图片转换为 10 种文档或数据格式,并提供 OCR 与版面分析控制。
Professional markdown rendering, export, and publishing via MCP. Use when user asks to "render markdown", "export to PDF", "convert to DOCX", "create a document", "publish a document", "share a link", "make a slide deck", "diff two markdown files", "export to HTML", "create a shareable document", "sync docs from GitHub", or "generate an image of this markdown". Do NOT use for simple markdown editing, code generation, or general writing that doesn't need styled output.
通过 ComPDF Cloud API 处理 PDF 文件,覆盖 50 余种文档操作。
通过 ComPDF Cloud API 执行 50 多种 PDF 与文档处理操作。