26 lines
1.2 KiB
Markdown
26 lines
1.2 KiB
Markdown
# pdf
|
|
|
|
An agent skill for exporting documents to PDF and checking the final page layout.
|
|
|
|
The skill exports from the editable source when available, renders every page, and has the agent open the page images at a readable scale. It compares the export with the requested formatting and any supplied reference. After a layout fix, it repeats the visual check on the new export.
|
|
|
|
## Usage
|
|
|
|
Invoke the skill as `$pdf` in T3 Code or ask your agent to use the `pdf` skill. For example, ask it to export a document and check that the PDF matches a reference, or to review an existing PDF for layout problems.
|
|
|
|
The workflow uses the authoring application's PDF exporter and an image-capable viewing tool. Poppler's `pdftoppm` is the suggested renderer. An equivalent renderer or PDF viewer that exposes the page images to the model also works.
|
|
|
|
## Installation
|
|
|
|
Clone this repository as `pdf` inside your agent's personal skills directory. For example, on a Codex setup that uses `~/.codex/skills`:
|
|
|
|
```sh
|
|
git clone https://git.bjphoster.com/skills/pdf.git ~/.codex/skills/pdf
|
|
```
|
|
|
|
If you use [skills-autoupdate](https://git.bjphoster.com/skills/.autoupdate), add `https://git.bjphoster.com/skills/pdf` to `~/.config/skills`.
|
|
|
|
## License
|
|
|
|
[MIT](LICENSE).
|