pdfcraft
БесплатноБез исполняемых скриптовНе проверенHeadless PDF work with PdfCraft, provisioned on demand by pi-craft - combine, split, extract, rotate, delete and reorder pages, read text, render a page to…
от BlackBeltTechnology★ 357 звёзд на GitHubОб этом скилле
PdfCraft — headless PDF editing
PdfCraft is ArtCraft's PDF app. pi-craft provisions the headless pdfcraft-cli on first use (no desktop app).
Choosing between apps, the discover → execute → save → verify loop, hand-off formats and the MCP policy live in
craft-studio. Note: pi-craft verify --pages/--text-contains itself uses pdfcraft-cli, so any PDF you make is
checked by the same engine that wrote it.
What it is for / formats
PDF in, PDF / png (.png .jpg .tif .pam) / text out. Page-level operations (combine, split, extract, rotate,
delete, move, blank pages), metadata, text extraction, page rendering, forms, bookmarks, stamps, redaction,
OCR/optimise batches. There is no project file: a PDF is the document. For laying out a new multi-page document
use DesignCraft or WordCraft (then convert … pdf); PdfCraft edits PDFs that already exist.
CLI dialect
pi-craft pdfcraft exec <args…> passes the arguments to pdfcraft-cli.
PdfCraft has no commands / describe / --cmd: it has direct subcommands plus a JSON tool registry.
pdfcraft-cli tools # JSON list of the 163 automation tools + input schemas
pdfcraft-cli info <f.pdf> # JSON summary (pages, page_labels, bookmarks, encrypted, …)
pdfcraft-cli text <f.pdf> [--page N] # extracted text, pages separated by form feeds
pdfcraft-cli render <f.pdf> --page N [--dpi 96] --out x.png
pdfcraft-cli edit <in.pdf> --out <out.pdf> [--rotate 1,3:90] [--delete 2,4] [--move 5:1] [--insert-blank 1] [--title T] [--author A]
pdfcraft-cli combine a.pdf b.pdf … --out c.pdf
pdfcraft-cli extract <in.pdf> --pages 1,3,5 --out o.pdf
pdfcraft-cli split <in.pdf> (--every N | --before 3,7) [--out-dir DIR]
pdfcraft-cli audit <f.pdf> # faux-redaction finder (JSON; fails when found)
pdfcraft-cli check <files|dirs…> [--json out.json] # does each PDF open and render
pdfcraft-cli run <tool> [key=value …] [--root DIR] [--out image.png] # one tool
pdfcraft-cli run --script steps.json [--root DIR] # several tools in one process
editoptions run in order and later page numbers refer to the document after the earlier options (--delete 2 --move 3:1moves the page that is third after the deletion). Rotation isPAGES:DEGREES.run <tool> key=value: values are JSON-ish (doc=1 page=1); strings with spaces need shell quotes.--script steps.jsonis a JSON array:[{"tool":"doc_open","args":{"path":"a.pdf"}}, …]; each step prints its result.--root DIR(onrun,batch,mcp; not oninfo/edit/…) confines file access to DIR and relative paths then resolve against DIR.
State between invocations
Direct subcommands (edit, combine, …) read a file and write a new file (--out); the input is never modified.
The automation tools (run) are different: they work on open documents (doc_open → doc id, usually 1), and
a single run process exits and forgets its documents (run page_add_text doc=1 … alone fails with "no open
document with id 1"). Put doc_open, the edits and doc_save in one --script (or one MCP session). Edits are
in memory until doc_save (path = save as; omit = in place).
Discovery first
There is no commands: discovery is pdfcraft-cli tools.
pi-craft pdfcraft exec tools | jq -r '.[] | "\(.name)\t\(.read_only)\t\(.description[0:80])"' # all names
pi-craft pdfcraft exec tools | jq '.[] | select(.name=="page_add_text") | .input_schema' # parameters
pi-craft pdfcraft exec info doc.pdf # page count before choosing page numbers
Each entry has name, description, input_schema (JSON Schema, required list), read_only, and command
(the GUI command id, often null). Use name. Typical families: doc_* (open/save/combine/split/info/set_info),
page_* (rotate/delete/move/extract/render/add_text/add_image), text_* (extract/find), form_*, bookmark_*,
redact_*, stamp_*, link_*. Prefer a direct subcommand when one exists; use tools for everything else.
Traps
runis stateless across processes (above):doc=1only exists inside the same--script/MCP session.combineadds one bookmark per input file (infoshowsbookmarks: 2for two inputs);pdf_versionbecomes 1.7.--rootrewrites relative paths: with--root sub,path=a.pdfmeanssub/a.pdfandpath=sub/a.pdffails with "No such file"; an absolute path outside the root fails with "is outside the allowed directory".info/text/editreject--root("unknown option"); confine throughrun --rootormcp --rootonly.textseparates pages by a form feed and keeps the text layer only: a scanned PDF returns nothing (OCR is abatch --steps ocrstep).- Page numbers are 1-based; a page that does not exist is an error (
render --page 9→ "page 9 does not exist", exit 1). renderat--dpi 72gives one
Установить pdfcraft в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pdfcraft?
Headless PDF work with PdfCraft, provisioned on demand by pi-craft - combine, split, extract, rotate, delete and reorder pages, read text, render a page to png, audit faux redactions, script its 163 tools. Use for "merge these two PDFs", "extract pages 1 and 3 from this PDF", "rotate page 1 and drop page 2", "what text is in this PDF".
Как установить скилл pdfcraft?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pdfcraft запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic