pumpzera

Python CLI to replace visible PDF text with font-aware fallback and cleaner word spacing.

11
0
100% credibility
Found Apr 10, 2026 at 11 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

A command-line tool that replaces specific words or short phrases in text-based PDF files, preserving fonts, sizes, and layout as closely as possible.

How It Works

1
📰 Find the PDF editor

You discover a simple tool that lets you change words inside PDFs, like updating a name in a contract.

2
💻 Get it ready

You set up the tool on your computer in just a couple of minutes.

3
📁 Pick your file

Choose the PDF you want to edit and decide where to save the new version.

4
✏️ Choose your changes

Tell the tool exactly which words or phrases to find and what to replace them with, like John to Jane.

5
🚀 Let it work

Start the tool, and it scans your PDF to make the changes while keeping the look the same.

See your new PDF

Open the fresh PDF file with your updates perfectly placed, original safe and sound.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 11 to 11 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is pdf-word-replacer?

This Python CLI tool acts as a pdf word replacer for text-based PDFs, letting you swap out words or short phrases while preserving the original font, size, color, and baseline. It outputs a new PDF with replacements applied, using font-aware fallbacks to avoid invisible text and tweaks for cleaner word spacing. Install via pip and run simple commands like `python -m pdf_word_replacer.cli input.pdf output.pdf --replace old=new --ignore-case`.

Why is it gaining traction?

It stands out by handling tricky PDF fonts intelligently—reusing safe ones directly or falling back to built-in families like Helvetica or Times—without mangling layouts. Multiple replacements via repeated python cli args, case-insensitive matching, and automatic spacing adjustments make quick edits feel polished, unlike basic string-replace scripts that break visuals. Devs grab it for its no-fuss python cli library approach on PyMuPDF, delivering reliable results on selectable-text docs.

Who should use this?

Document processors anonymizing client names in contracts, legal admins redacting sensitive terms before sharing, or data analysts swapping placeholders in reports. Python scripters automating PDF tweaks in pipelines, especially those dealing with scanned-free files from tools like Python GitHub projects or workflows.

Verdict

Grab it for one-off PDF edits if you need a lightweight python cli tool—docs are thorough, install is straightforward, and it works as advertised on supported PDFs. With just 11 stars and 1.0% credibility score, it's early-stage and lacks broad testing; prototype your use case first before production reliance.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.