Skip to content
Agent Orchestration
Skill

/pdf

Create, read, search, mark up, fill, merge, secure, or OCR a PDF with the office tool.

From plugin
mixdog
25617 skills1 agent

Claude Code

$ npx -y skills add tribgames/mixdog --skill pdf --agent claude-code

SKILL.md

pdf.SKILL.md
name: pdf
description: Create, read, search, mark up, fill, merge, secure, or OCR a PDF with the office tool.
when_to_use: 'PDF creation, reading, editing, OCR, forms, security, and table extraction; not Word/slides.'
metadata:
  requires: office
dependencies:
  tools:
    - type: tool
      value: office

PDF (office tool)

Use `office` to create, read, search, annotate, fill, merge, secure, and OCR PDFs or extract their content. Read this guide before the first PDF operation.

A PDF is a fixed rendering to read faithfully or a document to produce: a new document is written as HTML and printed by a local browser (`references/html.md`); blocks remain for fillable forms and small generated documents. Units are points with the origin at the bottom-left (A4 = 595.28 × 841.89, 1 inch = 72 pt); pages are 1-based.

Inspect first

1. `office action:'open' path:<file.pdf>` returns the snapshot: `pageCount`, per-page text with `width`, `height`, `rotation`, and `origin` when the page box does not start at 0,0 (`/page[N]`), form fields (`/field[N]`), `outline` (bookmarks with the page each opens — read it first on a long report), `attachments`, `metadata`, `encrypted`, `likelyScannedPages`. Snapshots are capped by `maxChars`; page through with `cursor` or ask for `pages:[...]`. 2. `encrypted:true` with `passwordRequired:true`: read `references/security.md` — reading needs the user password on that call, editing an unencrypted copy. Never guess passwords. 3. `likelyScannedPages` non-empty: those pages are pictures. Add a searchable layer (`references/ocr.md`) or `action:'render' pages:[...]` and read the image. Never report a picture page as empty. 4. `action:'query' queryKind:'pdf-layout' | 'pdf-tables' | 'pdf-images' pages:[...]` when position, table structure, or embedded images matter. A `pdf-tables` result with `source:'ruled'` was read from the cell borders and is exact (wrapped cells carry `\n`; a merged cell fills the first column it covers and `merges` names its `row`, `column` and `span`; `header:true` reports a shaded header row); `source:'alignment'` was guessed from text positions — runs the page drew apart inside one cell are joined back into that cell — so confirm it against the rendered page. `pdf-images` returns the pictures inline (each with its pixel size and where it sits: `x`, `top`, `placedWidth`, `placedHeight`), or as PNG files when `output:<dir>` is given; `pdf-tables` with `output:<dir>` also writes one CSV per table for the xlsx skill to pick up. `pdf-layout` with `query:<text>` returns only `matches[]` (page, `x`, `top`, `width`, `height`, the `line` it sits on) — the way to locate a phrase before `highlight` or `add_link`; the default kind with `query` searches values. 5. Coordinates: `pdf-layout` reports displayed top-left coordinates, while `add_text` takes points from the bottom-left, so `y = page.height - top`, plus `origin.x`/`origin.y` when reported. The same arithmetic holds on a rotated page: `add_text` and `watermark` read `x`/`y` as points on the page as displayed and turn the run with the page, so nothing has to be inverted or straightened first. `highlight`/`add_link` by `find` handle 90°/180°/270° page rotation and origin offsets themselves, without changing page orientation. Answers on a form without fields: `references/forms.md` §2. 6. Close a read-only session when done; anything that changed the file ends with `action:'finalize' session:<id> review:true`.

Create

**Step 1 — design for the content and reader**: choose the structure, type, palette, and density for the intended use. Existing files, templates, and brand requirements take precedence. `${MIXDOG_SKILL_DIR}/../pptx/references/concepts.md` is optional inspiration, not a required selection; `concept:` is optional free text. Neither a prescribed motif nor a fixed colour, whitespace, or layout ratio is required.

**Default — HTML for a new document**: write the layout in HTML/CSS and print with `office action:'author' path:<file.pdf> script:<html>`; read `references/html.md` first. The browser handles grid, flex, inline SVG, and Hangul line breaks. Choose the page model from the content (`references/html.md` §1), not a style catalogue:

  • **Designed pages**: a document a reader judges by its look and meets page by page — a brochure, one-pager, certificate, handout, proposal or report built as composed spreads. Each sheet is one `<section class="slide">` under the deck's own frame (gates, measured audit, receipt, direction, composition, HTML route): load the `pptx` skill (Skill name:"pptx") and follow it as written, with the differences `references/html.md` §2 lists. `author` runs the deck's gates, measured audit, and receipt on the pages, then prints the HTML itself; finalize takes the deck's scored critique.
  • **Flowing text**: a document whose text the browser paginates by itself — a contract, manual, letter, essay, or a long report with running prose and tables (`references/html.md` §3-§9).

**Blocks** stay for two cases: a fillable form (the browser prints form controls as pictures, never as fields — or print the page from HTML and add the fields with `add_form_field`), and a small document generated from data with no design of its own. With no local Chrome or Edge, `author` fails with `html_failed` naming the launch error, and the blocks are the route. Read `references/blocks.md` before building blocks or declaring fields at `create`.

Fonts: non-Latin text embeds a Unicode font found on the system (`references/blocks.md` §4). When none is installed the call fails with the hint: ask for a font file rather than transliterating.

Edit

`action:'batch' session:<id> operations:[...]`; put every known operation in one batch and split only when a later input depends on an earlier result; `describe format:'pdf' operation:<op>` only when a field is unknown. Results carry `changed` plus the evidence of each edit (`pages`, `pagesAdded`, `filled`, `output`, `bytesAfter`).

  • Pages: `rotate
Read more
@tribgames
Ships withmixdog

Open-source desktop coding agent where a lead model plans and cheaper models handle search, edits and review.

25617 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
256
Star history of tribgames/mixdog on GitHub, a chart by star-history.com

Other skills on mixdog.

code-tidy

code-tidy

Format, lint, apply structural rules, and clean up user-selected code with the tidy tool.

@tribgames@tribgamesInstall Skill
docx

docx

Create, edit, review, or redline a Word document (.docx/.dotx/.docm) with the office tool.

@tribgames@tribgamesInstall Skill
image

image

Make or edit an image through the media tool (Mixdog Media Studio).

@tribgames@tribgamesInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw4d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca2d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip3d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about pdf.

Which coding agents can use pdf?
pdf installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.