Work with PDF files: extract text, merge/split/reorder pages, rotate, read form fields, and render pages to images. To author a formatted PDF, build a…
от phuetz★ 53 звезды на GitHubОб этом скилле
Work with PDF files (pypdf + pdf2image)
Use the open-source pypdf (import pypdf) for page operations and form fields,
and pdf2image (from pdf2image import convert_from_path) to render pages to
images. Work in visible steps; verify before reporting done.
Common tasks
- Extract text:
pypdf.PdfReader(path).pages[i].extract_text()(orpython3 -m markitdown file.pdfif available). - Merge:
w = pypdf.PdfWriter(); [w.append(p) for p in paths]; w.write('out.pdf'). - Split / select pages: read with
PdfReader,writer.add_page(reader.pages[i])for the pages you want. - Rotate:
page.rotate(90)before writing. - Form fields:
reader.get_fields()to read;writer.update_page_form_field_values(...)to fill. - Render to image (for visual inspection):
convert_from_path('file.pdf')[0].save('page1.png').
Authoring a formatted PDF
pypdf does not lay out rich content. To produce a styled PDF, build a .docx or
.pptx first (see the docx/pptx skills), then convert:
soffice --headless --convert-to pdf --outdir . report.docx
This yields a clean, professionally formatted PDF.
Workflow
- Identify the operation (extract / merge / split / fill / convert).
- Run the pypdf (or soffice-convert) command via the
bashtool. - Verify: reopen the output (
PdfReader(out).pagescount, or extract a snippet) andprintthe path. - Report the saved path + a one-line summary.
Установить pdf в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pdf?
Work with PDF files: extract text, merge/split/reorder pages, rotate, read form fields, and render pages to images. To author a formatted PDF, build a .docx/.pptx and convert it. Use whenever the user asks to read, combine, split, or produce a PDF.
Как установить скилл pdf?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pdf запускает скрипты?
Нет, скилл состоит только из инструкций (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