मुख्य सामग्री पर जाएँ
Skillpedia
PDF, Word और स्लाइड14k · #11335

pdf-official

यह क्या करती है

यह स्किल कई तरह की PDF फ़ाइलें संभालती है, टेक्स्ट निकालने से लेकर नई रिपोर्ट बनाने और फ़ॉर्म भरने तक। यह अनुबंध, फ़ॉर्म, इनवॉइस और स्कैन किए पन्नों के साथ काम करने वाले लोगों के लिए है।

कब इस्तेमाल करें

  • ✓जब आपको किसी मौजूदा PDF से टेक्स्ट या टेबल निकालने हों।
  • ✓जब आप PDF के पन्ने जोड़ना, बाँटना, घुमाना या वॉटरमार्क लगाना चाहते हैं।
  • ✓जब आपको PDF फ़ॉर्म भरना हो या स्कैन की खोजने योग्य प्रति बनानी हो।

Skill का लिंक

https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/pdf-official/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/pdf-official/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मुझे इस PDF आवेदन के फ़ॉर्म फ़ील्ड में मेरा नाम और पता भरना है।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट पहले PDF जाँचता है, जैसे पन्नों की संख्या, एन्क्रिप्शन और फ़ॉर्म फ़ील्ड हैं या नहीं। फिर वह काम को निकालने, बदलने, बनाने या भरने वाले हिस्से में भेजता है, और नतीजा जाँचता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

PDF skill

An Apache-2.0 toolkit for reading, composing, transforming, and filling PDF files. Written from scratch on top of permissively-licensed open-source libraries (pypdf, pdfplumber, pypdfium2, reportlab, pdf-lib, qpdf) so this can be embedded in commercial projects without special agreement.

Route the task

Pick the sub-guide by the verb of the request.

Task Path Read
Pull text / tables / metadata / images out of an existing PDF Extract extract.md
Combine, carve, rotate, crop, watermark, encrypt, or shrink Transform transform.md
Build a PDF that doesn't exist yet (report, invoice, certificate) Compose compose.md
Fill a form (AcroForm or scanned) Interactive interactive.md
Scanned / image-only PDF (no selectable text) Extract → OCR extract.md §5

If a task mixes several of these, follow the order: probe → plan → extract or compose → validate.

Every path starts with a probe. scripts/survey.py returns page count, whether the file is encrypted, whether it has an AcroForm, and whether page 1 looks like a scan.

First install

Bundled runtime: when the MIMO_PYTHON environment variable is set, skip the installs below — run every command with python3/uv run replaced by "$MIMO_PYTHON" (pypdf/pypdfium2/reportlab/Pillow preinstalled; pip console scripts unavailable, use "$MIMO_PYTHON" -m <module>). A bundled qpdf is exposed as MIMO_QPDF (picked up automatically by the scripts here); invoke it directly as "$MIMO_QPDF" --check file.pdf.

Python-only path (all BSD / MIT / Apache) — covers 95% of tasks:

python3 -m pip install --upgrade pypdf pdfplumber pypdfium2 reportlab Pillow

Add these external binaries only when you actually need them:

# qpdf — merge/split/encrypt/repair, Apache-2.0
brew install qpdf                # macOS
apt-get install -y qpdf          # Debian / Ubuntu

# Tesseract — OCR for scanned PDFs, Apache-2.0
brew install tesseract
python3 -m pip install pytesseract pdf2image
apt-get install -y tesseract-ocr

# Poppler — pdftotext / pdftoppm / pdfimages, GPL-2.0
# Optional. Only install if you accept a GPL dependency at CLI level.
brew install poppler
apt-get install -y poppler-utils

Every script under scripts/ uses argparse. Exit codes: 0 OK · 1 runtime failure · 2 bad arguments · 3 validation failure (apply_values.py / overlay_text.py; sanity_check.py reports findings with exit 1). Any single script can be lifted into another project — none imports from a shared framework.

One-command triage

scripts/survey.py path/to/file.pdf --pretty

Sample output:

{
  "path": "/abs/path/file.pdf",
  "page_count": 12,
  "is_locked": false,
  "form_field_count": 34,
  "looks_scanned": false,
  "metadata": {"Title": "...", "Author": "...", "Producer": "..."}
}

Route by the flags:

  • is_locked: true → unlock first (qpdf --password=… --decrypt). Almost every reader library refuses locked files.
  • form_field_count > 0 → widgets path in interactive.md §1.
  • form_field_count == 0 AND you need to fill it → overlay path in interactive.md §2.
  • looks_scanned: true → skip pypdf text extraction, go straight to OCR (extract.md §5).

Which library for which task

Task Preferred Reason Fallback
Plain text pdftotext -layout fastest, keeps columns pypdf
Positioned text pdfplumber char-level bboxes pypdfium2.get_text
Tables pdfplumber tunable table_settings pandas over manual CSV
Page → image pypdfium2 Apache/BSD, no GPL pdftoppm (GPL)
Merge / carve / rotate pypdf pure Python qpdf --pages (faster on huge files)
Encrypt / repair / linearise qpdf handles broken input pypdf (basic encrypt only)
Compose from scratch reportlab mature, BSD pdf-lib in Node
Fill AcroForm pypdf.update_page_form_field_values preserves widget appearances pdf-lib in Node
Overlay on non-fillable reportlab + pypdf.merge_page two-layer merge, see interactive.md —

Common gotchas

  1. PDF origin is bottom-left, image origin is top-left. Every "off by a few points" bug is one of these two systems misapplied. Coordinate conversion is in one place: [`
अक्सर पूछे जाने वाले सवाल

क्या यह स्कैन की हुई PDF पढ़ सकती है?

हाँ। यह स्कैन पर OCR चलाकर टेक्स्ट को खोजने योग्य बना सकती है।

क्या यह एन्क्रिप्टेड PDF संभाल सकती है?

हाँ। स्किल PDF को एन्क्रिप्ट और अनलॉक करना कवर करती है।

क्या इसके लिए खास सॉफ़्टवेयर चाहिए?

स्किल pypdf जैसी Python लाइब्रेरी इस्तेमाल करती है, और उसके कमांड चलने से पहले एक सेटअप चरण चाहिए।

जानकारी

लेखक का मूल विवरण

Use this skill whenever a PDF file is being produced, opened, transformed, filled, or read. That includes: extracting text or tables from an existing PDF; combining, carving, rotating, cropping, or watermarking pages; composing a fresh PDF (report, invoice, certificate); filling AcroForm fields or overlaying text onto a non-fillable scanned form; encrypting or unlocking a PDF; running OCR over a scanned document; rendering pages to PNG/JPEG for visual analysis. Trigger on mentions of 'PDF', a filename ending in .pdf, requests like 'turn this into a PDF report', or references to AcroForm / form

repo: XiaomiMiMo/MiMo-Code

लोकप्रियता

GitHub स्टार
14k
रैंकिंग में स्थान
#11335
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

effect

14k

आपके एजेंट को Effect TypeScript फ़्रेमवर्क के सवालों के जवाब देने में मदद करती है, याददाश्त पर भरोसा करने के बजाय उसका सोर्स कोड और दस्तावेज़ जाँचकर।

कोडिंगसामान्य कोडिंग

arxiv

14k

आपके एजेंट को arXiv पर शोधपत्र खोजने, पढ़ने, उद्धृत करने और उन पर नज़र रखने में मदद करती है, जिसमें सार, BibTeX उद्धरण, PDF डाउनलोड और उद्धरण लिंक शामिल हैं।

लेखन और डॉक्यूमेंटरिसर्च

claude-code

14k

आपके एजेंट को कोडिंग का काम Claude Code कमांड-लाइन टूल को सौंपने में मदद करती है, एक बार चलने वाले रन, इंटरैक्टिव सेशन या पृष्ठभूमि जॉब के रूप में।

AI और एजेंटएजेंट

codex

14k

आपके एजेंट को बिना चैट विंडो के OpenAI Codex कमांड-लाइन टूल चलाने में मदद करती है, कोडिंग काम, स्क्रिप्ट और स्वचालित पाइपलाइन के लिए।

AI और एजेंटएजेंट

मिलती-जुलती skills