Pdf logo

Pdf

Organization
GTMify
pdf

Read, extract from, and create PDF files. Use whenever the user wants to extract text or tables from a PDF, combine or split PDFs, add watermarks, fill PDF forms, encrypt/decrypt PDFs, OCR scanned PDFs, or produce a new PDF. Trigger when the user mentions a .pdf file or asks to produce one.

Overview

PublisherGTMify
Repositoryaigtm
Skill namepdf
Stars
26
Forks
13
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by GTMify on GitHub. Read the source before you install it.

Installation

Install the Pdf AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/GTMify/aigtm/tree/main/skills/pdf
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GTMify/aigtm.git /tmp/aigtm
mkdir -p .claude/skills
cp -r /tmp/aigtm/skills/pdf .claude/skills/pdf
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pdf in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pdf on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pdf is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

PDF Skill

Your Role

You are a PDF operator. You read, extract from, merge, split, watermark, encrypt, and create PDF files using Python libraries. You pick the right tool for the job: pypdf for structural operations (merge, split, encrypt), pdfplumber for text and table extraction, reportlab or weasyprint for creating new PDFs from scratch, and ocrmypdf for OCR on scanned documents.

When to use this skill

Trigger when:

  • The user references a .pdf file by path or name
  • The user wants to extract text or tables from a PDF
  • The user wants to combine, merge, or split PDFs
  • The user wants to rotate pages, add watermarks, or extract images
  • The user wants to create a new PDF (from Markdown, HTML, or programmatically)
  • The user wants to fill a PDF form
  • The user wants to encrypt, decrypt, or password-protect a PDF
  • The user wants to OCR a scanned PDF

Library map

TaskLibrary
Merge / split / rotate / encryptpypdf
Extract textpdfplumber or pypdf
Extract tablespdfplumber (better)
Create PDF from Markdown / HTMLweasyprint or markdown-pdf
Create PDF programmaticallyreportlab
OCR scanned PDFsocrmypdf (system binary, install via brew install ocrmypdf)
Fill PDF formspypdf (basic forms) or pdfrw

Install: pip install pypdf pdfplumber reportlab weasyprint. OCR: brew install ocrmypdf.

Process

Step 1: Inspect First

Before processing a PDF, confirm:

  • Is it text-based or scanned? Open and check whether pdfplumber returns text. Empty text = scanned = needs OCR first.
  • How many pages? Multi-hundred-page PDFs need streaming, not full-load.
  • Is it encrypted? Attempt to open; if it asks for a password, get it from the user.

Step 2: Common Patterns

Extract all text:

python
import pdfplumber
with pdfplumber.open("input.pdf") as pdf:
    text = "\n\n".join(page.extract_text() or "" for page in pdf.pages)

Extract tables:

python
import pdfplumber
with pdfplumber.open("input.pdf") as pdf:
    for i, page in enumerate(pdf.pages):
        for j, table in enumerate(page.extract_tables()):
            print(f"Page {i+1} Table {j+1}: {table}")

Merge multiple PDFs:

python
from pypdf import PdfWriter
writer = PdfWriter()
for path in ["a.pdf", "b.pdf", "c.pdf"]:
    writer.append(path)
writer.write("merged.pdf")
writer.close()

Split PDF into single-page files:

python
from pypdf import PdfReader, PdfWriter
reader = PdfReader("input.pdf")
for i, page in enumerate(reader.pages):
    writer = PdfWriter()
    writer.add_page(page)
    writer.write(f"page_{i+1}.pdf")

Encrypt with password:

python
from pypdf import PdfReader, PdfWriter
reader = PdfReader("input.pdf")
writer = PdfWriter(clone_from=reader)
writer.encrypt(user_password="userpass", owner_password="ownerpass", algorithm="AES-256")
writer.write("encrypted.pdf")

Create a PDF from Markdown:

python
# Using weasyprint via HTML intermediate
import markdown
from weasyprint import HTML
html = markdown.markdown(open("input.md").read())
HTML(string=f"<html><body>{html}</body></html>").write_pdf("output.pdf")

OCR a scanned PDF (creates a searchable PDF):

bash
ocrmypdf input.pdf output.pdf

Step 3: For Long PDFs

For PDFs over 20 pages where the user needs extracted content:

  • Don't dump 200 pages into a single response
  • Ask which pages or sections matter
  • Return a summary with section-anchored excerpts, not raw text

Step 4: Verify

  • Open the output PDF in a reader (Preview, Acrobat) before declaring done
  • For extracted text, spot-check it against the source (OCR and text extraction both have failure modes)
  • For merges, confirm page count = sum of inputs

Guardrails

  • Don't overwrite source PDFs. Always write to a new path by default.
  • Scanned PDFs need OCR before text extraction. Don't return an empty string and call it done.
  • Encrypted PDFs: Ask for the password. Don't try to brute-force or strip encryption without explicit user authorization (legal risk).
  • Large files: PDFs over 100MB or 500 pages should be processed in chunks.
  • Forms: pypdf handles basic AcroForm fields; XFA forms (common in government PDFs) often fail and need different tools.
  • OCR quality: OCR isn't magic. Confirm output quality before relying on extracted text for downstream automation.
  • Sensitive data: PDFs often contain contracts, financials, PII. Don't log contents and don't commit files to git unintentionally.
  • Cross-platform PDF: Use system fonts (Helvetica, Times-Roman, Courier) in reportlab unless you embed fonts explicitly.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Pdf AI skill do?

Read, extract from, and create PDF files. Use whenever the user wants to extract text or tables from a PDF, combine or split PDFs, add watermarks, fill PDF forms, encrypt/decrypt PDFs, OCR scanned PDFs, or produce a new PDF. Trigger when the user mentions a .pdf file or asks to produce one.

Why use Pdf on TypingMind?

Because you install it once and use it with any model. Pdf is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pdf in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/GTMify/aigtm/tree/main/skills/pdf. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Pdf?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pdf?

As many as you like. As long as a model supports skills, you can use Pdf with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pdf AI skill free?

Yes. It is published on GitHub by GTMify under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇