Repository navigation
pdf-mutation v0.1.0
v0.1.0 | Initial Release
Initial release of pdf-mutation, a deterministic glyph-preserving PDF text
replacement CLI.
Added
pdf-glyph-replaceconsole command and directpdf_glyph_replace.pyscript.- Exact replacement for same decoded glyph counts.
- Support for hexadecimal
<...> Tjtext and simple[...] TJarrays. - Support for multiple CIDs inside a single hexadecimal string operand.
--align rightfor simple right-aligned, one-glyph-per-line amount edits.--align leftfor simple length-changing edits that preserve the original
text matrix.--dry-runand--dry-run --jsonfeasibility reports.--reportnon-sensitive JSON mutation reports.- Synthetic QDF unit tests that do not depend on private PDF fixtures.
- Repo-local policy, roadmap, release metadata, and validation docs.
Known Limits
- Replacement characters must already exist in the active PDF font CMap.
- Matches must fit inside one
BT ... ETtext object. - Length-changing alignment modes require one-glyph-per-line hexadecimal
Tj
text with deterministicTdadvances. - The tool does not synthesize fonts, OCR text, redraw pages, edit encrypted
PDFs, or reflow arbitrary paragraphs.