界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
文档与办公 · SKILL.md

document-core

document-core

【文档与办公】Open, inspect, authenticate, convert, save, and safely manage PyMuPDF documents and shared geometry primitives.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: document-core description: "Open, inspect, authenticate, convert, save, and safely manage PyMuPDF documents and shared geometry primitives." disable-model-invocation: true metadata: disco-role: operating license: AGPL 3.0

Document Core

Use this sub-skill for the core PyMuPDF document lifecycle: open or create a document, inspect page/metadata/outline basics, authenticate protected PDFs, convert supported non-PDF inputs to PDF, choose a safe save mode, or reason about shared geometry primitives.

Read or run

Boundaries

Route text/OCR/tables/RAG to ../text-tables-and-rag/SKILL.md, rendering/images to ../rendering-images-and-graphics/SKILL.md, PDF editing/forms/redaction to ../pdf-editing-annotations-forms/SKILL.md, and CLI/build/test concerns to ../cli-and-maintenance/SKILL.md.

Default checklist

Use import pymupdf; open local paths with pymupdf.open(path), memory with pymupdf.open(stream=data, filetype="pdf"), and text-like inputs with an explicit filetype. Authenticate when doc.needs_pass is true. Prefer full save to a new path unless intentional incremental update is supported. Reacquire pages and child objects after page-tree changes or document close/reopen.

我的收藏