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

[COLM'26] SkillLearnBench is the first benchmark for evaluating continual learning methods that automatically generate agent skills.

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.

What its author says it does

Copied from the file, not written here

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.

SKILL.md

1.0 KB, 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

Keep looking

Skills are one crate of 328,083. 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.