Λογότυπο Pdf Form Filler

Pdf Form Filler

Κοινότητα
ericmjl
pdf-form-filler

Fill PDF forms: flat PDFs with NO fillable fields and fillable AcroForm PDFs with real fields (school enrollment packets, medical intakes, waivers, government paperwork) and reuse a prior year's filled PDF as the source of answers. Requires a vision-language-model coding agent (renders pages to images and looks at them); there is no non-VLM fallback. Use when: the user asks to fill out / complete / fill in a PDF form, especially recurring yearly forms (enrollment, renewal, intake) where a previously filled copy exists; when pypdf reports zero AcroForm fields but the form has lines and labels; when pypdf reports REAL AcroForm fields that need filling; when the user says 'agent, fill this form for me'; when transplanting prior answers onto a new PDF template; when reproducing a scanned or drawn signature as vector ink from an old PDF; or when a filled form's text overlaps lines or labels and placement needs verification against rendered pixels.

Επισκόπηση

Εκδότηςericmjl
Αποθετήριοskills
Όνομα δεξιότηταςpdf-form-filler
Αστέρια
41
Διακλαδώσεις
5
Συνοδευτικά αρχεία
1
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Συνοδευτικά αρχεία: 1

    Αρχεία script, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό ericmjl. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Pdf Form Filler στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/ericmjl/skills/tree/main/skills/pdf-form-filler
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ericmjl/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/pdf-form-filler .claude/skills/pdf-form-filler
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Pdf Form Filler σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Pdf Form Filler μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Pdf Form Filler δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

PDF Form Filler

Fill flat PDFs (no AcroForm fields) by transplanting answers from a prior filled copy, drawing text at exact PDF coordinates, and verifying every page by rendering it and looking at the pixels. Requirement: you (the agent) must be able to view images. There is no non-VLM fallback; without vision, do not attempt this workflow, you will ship misaligned text and never know.

Core insight

A form is a measured coordinate range, never a visual impression. The whole discipline is: get exact geometry from the PDF's own data, convert coordinate conventions correctly, and verify placement against rendered pixels because every library lies at least once.

The one workflow that works

1. Mine a prior filled copy before writing any code

Search the user's machine (Downloads, Documents, email attachments) for a previously filled version of the same form. Recurring forms (yearly enrollment, renewals) are almost always the identical template year over year. A prior copy provides:

  • Every answer (and the positions of its answers, which become your coordinates)
  • The user's signature as vector ink (see signature section)
  • Baseline offsets that a human already got right (steal them)

Diff the prior template against the new blank: extract all text lines with coordinates from both and compare position sets. If blanks align, transplant answers wholesale and update only what changed. Ask the user a batched list of just the changed fields (insurance plan, phone numbers, dates, names); never guess these.

Highest-leverage check: confirm the two templates are identical by testing that every static text line sits at the same (page, x, y). Only footer dates should differ.

2. Confirm the form has no fillable fields

python
from pypdf import PdfReader
print(PdfReader("form.pdf").get_fields())  # None or {} = flat PDF, this skill applies

(If real AcroForm fields exist, use Branch B at the end of this file and set the field values. The rest of this file is the flat case.)

3. Extract prior answers with positions

Use pdfminer.six to get text, position, size, and color per line: extract_pages() gives LTTextContainer/LTTextLine with .bbox (x0, y0 from BOTTOM-LEFT) and per-char graphicstate.ncolor. Filter to the fill color (often blue or black) to separate answers from form labels.

Dump the extracted fills to JSON (page, x, y, size, text) before transforming; you will reuse it every iteration.

4. Write text on the blank PDF, honoring the placement contract

Use PyMuPDF (pymupdf/fitz) to insert_text(). The placement contract, hard-earned:

  • Baseline sits ~2.5pt ABOVE the drawn line, never at it. Text at the line's y crosses through glyphs like a strikethrough. y_top = page_height - extracted_y - 2.5 (the 2.5 came from measuring a human-filled exemplar).
  • Text must not overlap anything. Not the printed label, not the line, not adjacent fields, not the page edge. Compute the string's rendered width (fitz.get_text_length(text, fontname, fontsize)) and shrink the font (min ~7pt) until x + width <= blank_right_edge.
  • Center on the blank's measured range. Field blanks are the underscore runs inside the field's text span; measure their exact extent (char-level via get_text('rawdict')) and place text ON that run, not past its end, not on the label.
  • Junk from the old form (stray single characters, mis-angled fragments near signature areas) gets DROPPED, never transplanted. Ask the user for real values where junk blocked a field.
  • CJK text needs a CJK-capable font ("china-s" in PyMuPDF); measure its width with the same font you draw with.

5. Signatures: replay vector ink, never paste pixels

A drawn signature in a PDF is NOT an image; it is hundreds of small path segments ('l', 'c' curve operators) in one or few drawing objects, filtered by stroke/fill color (e.g. blue 0,0.44,1). To move it to a new PDF:

  1. Read the source page's get_drawings().
  2. Select paths whose color matches the ink.
  3. Replay each path's items as raw PDF operators (m/l/c/re + h + f) appended to the destination page's content stream, coordinates as-is (see gotchas for the flip trap).
  4. Never crop the source page as pixels: the region smuggles surrounding printed text into your output image. If a pixel region must be used (last resort), mask to keep only strongly-colored ink and alpha out the background.

Yes, the user should ideally sign by hand; also offer the replayed signature, they usually accept it (it is their own signature from their own prior form).

6. The verification loop (mandatory, this is the skill)

For every page: render to PNG (page.get_pixmap()), then LOOK at the image. Check: text on the correct blank, baseline above the line without crossing it, no overlap with labels or neighbors, nothing spilling past the page edge, signature present and in the right place. Iterate until clean. Render-verify-fix is the loop; text-length arithmetic is a hypothesis, the render is the verdict.

7. Pixel-profile check for signatures (fallback when unsure)

To find where ink actually is: render at 72dpi, scan for pixels where blue channel far exceeds red (b > 150 and b - r > 60), cluster the rows, and compare clusters against the old page's clusters. Same clusters = same placement. Do not trust coordinate math alone; measure ink.

Coordinate systems (read this twice)

The single biggest source of wrong renders. Three conventions coexist:

  • pdfminer/PDF content space: origin BOTTOM-LEFT, y up. Extraction gives you this.
  • PyMuPDF page.rect / get_pixmap: origin TOP-LEFT, y down. Drawing with insert_text() uses this.
  • PDF content-stream path operators (what get_drawings() items map to): origin BOTTOM-LEFT again, y up.

Converting extracted (bottom-left) positions to PyMuPDF drawing (top-left): y_pymupdf = page_height - y_extracted, plus your baseline offset (above). Note page_height is the page's actual height (letter = 792), and non-72dpi renders multiply everything by dpi/72.

Signatures replay in raw content-stream space: pymupdf's get_drawings() rect for a bottom-half signature may ALREADY be in top-down convention on some PDFs. Do not trust either convention: render, measure the ink's pixel rows, and compute the flip from evidence. Verify with the ink-profile technique above; if the signature lands mirrored (top of page instead of bottom), you flipped wrong, and the profile check catches it instantly.

Rejected approaches (do not retry)

  • show_pdf_page with clip rects to copy signature regions: copies ALL content in the rect, duplicating text and lines.
  • Rasterized region pastes for signatures: smuggles printed text into the image at stamp resolution.
  • XObject indirection for simple path replay: resource-dictionary failures ("cannot find XObject"); direct path operators in the content stream work.
  • Trusting any single library's coordinate report: each must be calibrated against rendered pixels once per document.

The fallback loop for every failure: render, look at the image, measure ink pixels, reconcile the transform. Pixel measurement beats arithmetic every time they disagree.

Working checklist

  1. Locate prior filled PDF; diff templates; ask user for changed values in one batch.
  2. Extract answers + positions + color (pdfminer); dump JSON.
  3. Write text (pymupdf): baseline 2.5pt above line, no overlaps, shrink-to-fit, CJK font when needed, drop junk.
  4. Replay signature/ink vector paths; determine flips from pixel evidence, not theory.
  5. Render every page to PNG; LOOK at each. Zoom on dense areas (tables, signature rows, narrow blanks).
  6. Iterate fixes until every field passes the placement contract.
  7. Deliver: filled PDF + one PNG render per page for the user's own final check.

The user's final look is part of the pipeline, not a nicety. They will catch what the render-verify loop normalized.

Branch B: the form HAS real AcroForm fields (fillable PDF)

Step 2 detects this: get_fields() returns a populated dict. Fill the real fields instead of drawing text. The render-verify loop and placement contract still apply in full.

  1. Map cryptic field names to printed labels. Names are often machine-generated (topmostSubform[0].Page1[0].f1_03[0]), so match each widget's rect against the printed label text on the rendered page instead of trusting name order.
  2. Fill with pypdf: build a PdfWriter, then update_page_form_field_values(page, {name: value}) per page, and enable NeedAppearances (writer.set_need_appearances_writer(True)) so viewers actually render the values. Without it, values can be set but invisible in Preview/Acrobat.
  3. Rasterize every TOUCHED page and look at it, same as Branch A. Values can render in a fallback font, at the wrong size, or not at all; the render is the verdict.
  4. Leave signature-line fields empty for hand-signing. Typed "print name" lines are fine to fill; actual signature fields are not.
  5. Sensitive fields (DOB, SSN, account numbers): write them into the local PDF only. Tell the user they land in the file and are not echoed in chat or summaries.
  6. Deliver two files side by side in ~/Downloads: the draft-filled PDF and the untouched original, named so the user can tell them apart.

Batch-question fallback (question UI dismissed or unavailable)

Interactive question prompts can get dismissed mid-flow. The fallback that keeps momentum: prefill everything known-safe first, generate the draft, then ask ALL remaining blanks in ONE numbered plain-text message ("answer inline by number, any format; skip what you don't know and I'll leave it blank for handwriting"). One message, never a dribble of questions. Prefill-then-ask converts a blocked session into a deliverable draft plus a single round-trip.

Downloading government form PDFs

Some portals block scripted downloads: curl/webfetch get nothing useful, e.g. Mass.gov. Pull the file through a real browser session (agent-browser) and save from there. Do not loop on curl retries first; see webfetch-empty-use-agent-browser for the general pivot rule.

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Pdf Form Filler;

Fill PDF forms: flat PDFs with NO fillable fields and fillable AcroForm PDFs with real fields (school enrollment packets, medical intakes, waivers, government paperwork) and reuse a prior year's filled PDF as the source of answers. Requires a vision-language-model coding agent (renders pages to images and looks at them); there is no non-VLM fallback. Use when: the user asks to fill out / complete / fill in a PDF form, especially recurring yearly forms (enrollment, renewal, intake) where a previously filled copy exists; when pypdf reports zero AcroForm fields but the form has lines and label...

Γιατί να χρησιμοποιήσετε τη δεξιότητα Pdf Form Filler στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Pdf Form Filler είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Pdf Form Filler στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/ericmjl/skills/tree/main/skills/pdf-form-filler. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Pdf Form Filler;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Pdf Form Filler;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Pdf Form Filler με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Pdf Form Filler;

Ναι. Δημοσιεύεται στο GitHub από τον λογαριασμό ericmjl με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων
Λογότυπο openclaw

Openclaw Update

openclaw
ΟργανισμόςΔημοφιλής

Δρομολογήστε τις συνήθεις ενημερώσεις ενός υπάρχοντος τοπικού ή απομακρυσμένου OpenClaw Gateway στον υπεύθυνο εγκατάστασής του, με αυτόματη ανάκτηση συνεδρίας. Προτιμήστε δεξιότητες ειδικές για την εκάστοτε ανάπτυξη, όταν είναι διαθέσιμες.

82.2K
391K
Αρχεία: 1
Προβολή
Λογότυπο openclaw

Tag Duplicate Prs Issues

openclaw
ΟργανισμόςΔημοφιλής

Χρησιμοποιήστε το gitcrawl για να αναζητήσετε διπλότυπα PR/ζητήματα του OpenClaw, να ομαδοποιήσετε συναφείς εργασίες στο prtags και να συγχρονίσετε την κατάσταση των διπλοτύπων με το GitHub.

82.2K
391K
Αρχεία: 1
Προβολή
Λογότυπο openclaw

Update Team Server

openclaw
ΟργανισμόςΔημοφιλής

Ενημερώστε τον διακομιστή Team που έχει ρυθμίσει ο χειριστής μέσω του επίσημου κατόχου του· εμπιστευτείτε την εγγενή επικύρωση και αποδοχή, χωρίς διπλούς ελέγχους ή προγραμματιστές εργασιών.

82.2K
391K
Οδηγίες
Προβολή
Λογότυπο openclaw

Cloud Image Bake

openclaw
ΟργανισμόςΔημοφιλής

Δημιουργήστε, επιλέξτε, επαληθεύστε στην πράξη και αποσύρετε με ασφάλεια μια εικόνα Cloud Worker με μονογραμμικές εντολές crabbox και διαμόρφωσης.

82.2K
391K
Οδηγίες
Προβολή

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇