agentsclimarketplace

Run3 extract pdf text with poppler

Skill cxcscmu/SkillLearnBench/skills/b3-teacher-feedback-gemini-3-flash-preview/organize-messy-files/run3_extract_pdf_text_with_poppler

Extracts text from PDF files using the `pdftotext` command-line utility with the `-layout` flag to preserve multi-column formatting, which is essential for accurately parsing scientific papers.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill run3_extract_pdf_text_with_poppler

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.0 KB, 172 tokens by cl100k_base, as published. Nobody here has run it

import subprocess
import shutil

def extract_pdf_text(file_path):
    """
    Extracts text from a PDF file using poppler-utils' pdftotext.
    Uses the -layout flag to handle multi-column layouts in scientific papers.
    """
    if not shutil.which("pdftotext"):
        # Fallback check for common tool availability
        return None

    try:
        # -layout maintains the visual arrangement of the text
        # -nopgbrk removes page breaks for a continuous stream
        result = subprocess.run(
            ["pdftotext", "-layout", "-nopgbrk", "-q", file_path, "-"],
            capture_output=True,
            text=True,
            check=True
        )
        return result.stdout
    except subprocess.CalledProcessError:
        return None

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.