PDF Modifier

السجل الرسمي الإنتاجية

Modify PDF text, replace with regex, and analyze layout while preserving fonts.

ماذا يمكنك أن تفعل مع PDF Modifier؟

  • Text replacement — find and replace with font style preservation (family, weight, size, color)
  • Regex support — pattern-based bulk replacements (--regex)
  • Hyperlinks — create clickable links or neutralize existing ones
  • Batch processing — apply same replacements to multiple files
  • Web UI — drag & drop PDF upload, structure browser, page preview with zoom, text highlighting
  • MCP tools — read_pdf_structure, inspect_pdf_fonts, list_pdf_hyperlinks, modify_pdf_content

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

PYPI package pdf-modifier
Claude Code
claude mcp add pdf-modifier -- uvx pdf-modifier==1.10.1
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "pdf-modifier": {
            "command": "uvx",
            "args": [
                "pdf-modifier==1.10.1"
            ]
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. PDF Modifier
  2. Quick start
  3. Interfaces
  4. Features
  5. Development
  6. Documentation
  7. License

PDF Modifier

CLI + MCP server + Web UI for PDF text replacement with font style preservation.

Quick start

pip install pdf-modifier

# CLI
pdf-mod modify input.pdf output.pdf -r "Draft=Final"

# MCP server (for Claude/Cursor/Codex)
claude mcp add -s user pdf-modifier -- uvx pdf-modifier

Interfaces

InterfaceDescriptionRun
CLIpdf-mod — batch jobs, scripting, CI pipelinesmake run cli ARGS="..."
MCP Serverpdf-modifier — AI agents edit PDFsmake run mcp
Web UIFastAPI + SvelteKit — drag & drop, preview, replacemake up (Docker) or make run api + make run frontend

Features

  • Text replacement — find and replace with font style preservation (family, weight, size, color)
  • Regex support — pattern-based bulk replacements (--regex)
  • Hyperlinks — create clickable links or neutralize existing ones
  • Batch processing — apply same replacements to multiple files
  • Web UI — drag & drop PDF upload, structure browser, page preview with zoom, text highlighting
  • MCP tools — read_pdf_structure, inspect_pdf_fonts, list_pdf_hyperlinks, modify_pdf_content

Development

# Setup
make setup

# Run tests
make test

# Full check (lint + type + test)
make check

# Start dev stack (Docker)
make up
# API: http://localhost:8000 | Web: http://localhost:8080

# Start servers locally
make run api          # FastAPI dev server
make run frontend     # SvelteKit dev server

Documentation

License

MIT

الأسئلة الشائعة

ما هو PDF Modifier؟

Modify PDF text, replace with regex, and analyze layout while preserving fonts.

كيف أثبّت PDF Modifier؟

يعمل على جهازك. في Claude Code: claude mcp add pdf-modifier -- uvx pdf-modifier==1.10.1. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج PDF Modifier إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل PDF Modifier مفتوح المصدر؟

شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.

من يصون PDF Modifier؟

ينشره mlorentedev. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.