Index of every page on this site: llms.txt
All skills
prefecthq avatar

/pdf-processing

@12a2db1
by Prefectprefecthq/fastmcp29k stars
2,631
Run it yourself

Extract text from PDFs, fill forms, and merge documents

  • 2 files
  • 1.5 KB
  • Updated 4 weeks ago
  • GitHub
Use this Skill: https://skilld.dev/gh/prefecthq/fastmcp/pdf-processing

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

reference.md

≈199 tokens on demand. Your agent reads this file only when SKILL.md points to it.

PDF Processing Reference

Text Extraction

To extract text from a PDF:

from pypdf import PdfReader

reader = PdfReader("document.pdf")
for page in reader.pages:
    text = page.extract_text()
    print(text)

Form Filling

PDF forms can be filled using the form fields API:

from pypdf import PdfReader, PdfWriter

reader = PdfReader("form.pdf")
writer = PdfWriter()

writer.append(reader)
writer.update_page_form_field_values(
    writer.pages[0],
    {"field_name": "field_value"}
)

with open("filled_form.pdf", "wb") as output:
    writer.write(output)

Merging PDFs

from pypdf import PdfWriter

writer = PdfWriter()
writer.append("doc1.pdf")
writer.append("doc2.pdf")

with open("merged.pdf", "wb") as output:
    writer.write(output)

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 12a2db1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 weeks ago
version
1.0.0
tags
[
  "document",
  "pdf",
  "extraction"
]

README badge

README badge for prefecthq/fastmcp/pdf-processing