# pdf-surgeon

Model-driven editor of PDF text whose result keeps the original typesetting, by rewriting the page content stream in place.

- Type: Plugin
- Version: 1.0.1
- Updated: 22 Nov 2026
- Publisher: Samuek9
- Category: Tools
- Licence: AGPL-3.0

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

Model-driven editor of PDF text whose result keeps the original typesetting, by rewriting the page content stream in place — the string operand inside the existing BT/ET block is replaced and the Tm origin of everything after it on the line is retargeted, so font, size, colour, baseline, char/word spacing, horizontal scale and kerning survive untouched because they are never rewritten. This is the alternative to redact-and-re-stamp, which defaults to Helvetica 8pt and makes you restate font, size and colour by hand; get any of that wrong and the page reads as forged.

## Tools it adds

The tools an agent gets once this plugin is installed.

- `pdf_replace_text`

## Review notes

What an owner reads and accepts before the install is approved.

- licence AGPL-3.0 (plugin/LICENSE) is not permissive
- the manifest lists python_dependencies pymupdf

## More in Tools

- [Penguin](https://www.ulpi.io/en/marketplace/plugins/penguin): A penguin in Antarctica keeping an eye on everyone's time: deterministic IANA conversions, whole-meeting overlap windows, profile-local teams.
- [Pentest](https://www.ulpi.io/en/marketplace/plugins/pentest): Guided local Vite/Supabase source input discovery, fresh human approval, offline build and isolated testing with synthetic data.
- [Penthera](https://www.ulpi.io/en/marketplace/plugins/penthera): Offline, rule-based security checks run.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
