pdf-processing

majiayu000 的头像作者 majiayu000

Extract text and tables from PDFs; use when PDFs, forms, or document extraction are mentioned.

📖 中文导读:Extract text and tables from PDFs; use when PDFs, forms, or document extraction are mentioned. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: pdf-processing description: Extract text and tables from PDFs; use when PDFs, forms, or document extraction are mentioned.

PDF Processing

  • Use pdfplumber to extract text.
  • Install pdfplumber with pip install pdfplumber.
  • Extract text per page:
    import pdfplumber
    
    with pdfplumber.open("input.pdf") as pdf:
        text = "\n".join(page.extract_text() or "" for page in pdf.pages)
    
  • For form filling, pair with your form template or validation steps.