CapturePdf

Extract text from PDFs and save cleaned markdown to sources/.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Alejfanjul/ai-brain --skill capturepdf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: CapturePdf
Source: https://github.com/Alejfanjul/ai-brain/tree/main/.claude-config/skills/CapturePdf
Command: npx skills add https://github.com/Alejfanjul/ai-brain --skill capturepdf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Captures PDF books and converts them to markdown for the ai-brain knowledge base.

Core Features & Use Cases

  • Extracts text from all PDF pages
  • Cleans content (removes tracking, formatting artifacts)
  • Saves as markdown in sources/
  • Auto-commits to git
  • Ready for embedding via embed_sources.py

Quick Start

Run the capture_pdf.py script on a PDF file to convert it into markdown in sources/ and prepare it for embeddings.

Frequently Asked Questions about CapturePdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert PDF books to markdown for a knowledge base?

You can convert PDF books to markdown for a knowledge base by running a script that extracts text from all pages, cleans formatting artifacts, and saves the output as markdown files ready for embedding.

What is the best way to extract text from a PDF and prepare it for embeddings?

The best way to extract text from a PDF and prepare it for embeddings involves cleaning formatting artifacts, saving the content as markdown in a sources directory, and auto-committing the changes to git.

Does converting PDFs to markdown automatically clean formatting artifacts?

Yes, converting PDFs to markdown automatically cleans content by removing tracking and formatting artifacts, ensuring the extracted text is properly formatted for your knowledge base.

Can I auto-commit extracted PDF text to git as markdown?

Yes, you can auto-commit extracted PDF text to git as markdown. The conversion process saves the cleaned text directly into your sources directory and automatically commits the updates to your repository.

How do I ready markdown content for embedding after extracting it from a PDF?

To ready markdown content for embedding after extracting it from a PDF, you save the cleaned text into a sources directory and run an embedding script to process the newly created markdown files.

Why does my extracted PDF text contain formatting artifacts in markdown?

Extracted PDF text contains formatting artifacts in markdown because PDFs often include hidden tracking data and structural formatting that require a dedicated cleaning step to remove before embedding.