Skills

PDF

Read, fill and build PDFs: inspect structure and fonts, extract text and tables with...

Install

npx skills add ginlix-ai/LangAlpha --skill pdf -g -a claude-code -y
Repository
ginlix-ai/LangAlpha2.2k
Category
Engineering
Updated
3d ago
License
Apache-2.0
Context cost
Mediumabout 3,000 tokens
Runs scripts
Yes, review before use

What it does

Read, fill and build PDFs: inspect structure and fonts, extract text and tables with pdfplumber and poppler, fill and flatten AcroForms with pypdf, create with reportlab, merge, split and encrypt with qpdf, and verify by rendering the page and looking at it

PDF

A PDF is a fixed page. Everything in it, text, rules, a table's alignment, a form field's box, is placed at a coordinate and stays there. That is the whole reason to reach for the format and the whole reason it is awkward: a PDF is right when the layout is part of the message (a filled form, a signed-looking statement, a tear sheet that must print identically everywhere) and wrong when the user will want to edit the content later.

Two jobs live here and they barely overlap. Reading a PDF the user hands you: find out what it is, pull the text and tables, look at the pages that matter. Producing one: fill an existing form, assemble pages, or draw a new document. Both end the same way, by rendering to PNG and looking, because nothing else in this toolchain can see the page.

User preferences override these defaults. A template the user supplies, a house font, a filename convention, a specific page size: those outrank every rule here. The rules below are for when nothing has been specified.

Decide: Which Output?

WantUse
Read, search or summarise a PDF the user suppliedthis skill: info.py, then extract.py, then render.py
Fill in a fillable form the user suppliedthis skill: forms.py inspect, fill, then render and look
Merge, split, rotate or password-protect existing PDFsthis skill: pages.py
A fixed-layout artifact built from data: a tear sheet, a filled form, a certificate, a cover pagethis skill: reportlab, below
A long prose document the user may edit or that must match a house Word templatebuild the docx, then soffice --convert-to pdf (below). The docx is the deliverable; the PDF is a rendering of it
A research note with charts the user will read on screen and may printhtml-report, then the browser's print to PDF
A model the user will keep working inxlsx
A dataset for another program.csv, not a PDF
Read the whole SKILL.md on GitHub

More in Engineering