Install any skill in seconds. Free to start, no credit card required.
Get Started Free →code-saurabh/pdf
Read, extract, create, merge, split, and manipulate PDF files.
Passed 22 of 22 test cases with the skill, and 21 of 22 without it.
1 fixed21 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
Write a Python snippet using ReportLab to build a PDF displaying mathematical equations like x squared plus y squared.
| Checked | Without skill | With skill |
|---|---|---|
| The Paragraph text uses HTML sup tags like 'x<sup>2</sup>' rather than Unicode superscript characters. | Missed | Passed |
The instructions your model reads when the skill loads.
PDF is the universal document format. It is also one of the most annoying formats to work with programmatically. This skill handles the full range of PDF tasks — reading, creating, editing, merging, splitting, and extracting — using the right tool for each job.
| Task | Best tool |
|---|---|
| Extract text (digital PDF) | pdfplumber or pdftotext |
| Extract tables | pdfplumber |
| Create PDF from content | reportlab |
| Merge / split / rotate | pypdf or qpdf |
| Fill PDF forms | pypdf or pdf-lib (JS) |
| OCR scanned PDFs | pytesseract + pdf2image |
| Password protect / decrypt | pypdf or qpdf |
| Extract images | pdfimages (poppler) |
pypdf,pdfplumber, andreportlabare typically pre-installed. Import directly. Only runpip installif an import fails.
# pdfplumber — preserves layout better than pypdf
import pdfplumber
with pdfplumber.open("document.pdf") as pdf:
print(f"Pages: {len(pdf.pages)}")
for i, page in enumerate(pdf.pages, 1):
text = page.extract_text()
if text:
print(f"\n--- Page {i} ---")
print(text)
# Command line — fastest for quick extraction
pdftotext document.pdf output.txt # basic
pdftotext -layout document.pdf output.txt # preserve column layout
test cases passed, vs 21 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.