Pdf filler
Provides guidelines for filling out PDF forms using programming tools.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill pdf-fillerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.8 KB, 175 tokens by cl100k_base, as published. Nobody here has run it
PDF Filler Skill
Overview
This skill provides instructions for filling out existing PDF form fields using Python libraries like pypdf or pdfrw.
Prerequisites
- Python 3.x
pypdflibrary
Installation
pip install pypdf
Usage Pattern
from pypdf import PdfReader, PdfWriter
def fill_pdf(input_path, output_path, data_dict):
reader = PdfReader(input_path)
writer = PdfWriter()
# Copy pages
for page in reader.pages:
writer.add_page(page)
# Fill fields
writer.update_page_form_field_values(
writer.pages[0], data_dict
)
with open(output_path, "wb") as output_stream:
writer.write(output_stream)
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.