Claude Skill

pdf

Extract text from PDF documents

LLM Mart · 0 points · 23 views 0 listing impressions 0 install-command copies
Download axoviq-ai-synthadoc-synthadoc_skills_pdf-8dee0ee.zip · 3 KB

Install

skills CLI npx skills add https://github.com/axoviq-ai/synthadoc/tree/main/synthadoc/skills/pdf
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install axoviq-ai-synthadoc@llmmart
Git git clone https://github.com/axoviq-ai/synthadoc.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole axoviq-ai/synthadoc collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

PDF Skill

Extracts text from PDF files using pypdf as the primary parser, with pdfminer.six as a fallback for CJK fonts that pypdf cannot decode (detected when pypdf yields fewer than 50 characters per page on average).

Setup

pip install pypdf pdfminer.six

Standalone usage

import asyncio
from synthadoc.skills.pdf.scripts.main import PdfSkill

skill = PdfSkill()

async def main():
    result = await skill.extract("/path/to/paper.pdf")
    print(result.text)          # extracted text from all pages
    print(result.metadata)      # {"pages": N, "cjk_fallback": bool, ...}

asyncio.run(main())

When this skill is used

  • Source path ends with .pdf
  • User intent contains: pdf, research paper

Scripts

  • scripts/main.py — PdfSkill class

References

  • references/cjk-notes.md — notes on CJK font handling
Files (synthadoc)
  • references
    • cjk-notes.md 399 B
      Loading…
  • scripts
    • main.py 3.6 KB
      Loading…
    • __init__.py 0 B
      Loading…
  • requirements.txt 19 B
    Loading…
  • SKILL.md 1.1 KB
    ---
    name: pdf
    version: "1.0"
    description: Extract text from PDF documents
    entry:
      script: scripts/main.py
      class: PdfSkill
    triggers:
      extensions:
        - ".pdf"
      intents:
        - "pdf"
        - "research paper"
    requires:
      - pypdf
      - pdfminer.six
    author: axoviq.com
    license: AGPL-3.0-or-later
    ---
    
    # PDF Skill
    
    Extracts text from PDF files using `pypdf` as the primary parser, with
    `pdfminer.six` as a fallback for CJK fonts that pypdf cannot decode
    (detected when pypdf yields fewer than 50 characters per page on average).
    
    ## Setup
    
    ```bash
    pip install pypdf pdfminer.six
    ```
    
    ## Standalone usage
    
    ```python
    import asyncio
    from synthadoc.skills.pdf.scripts.main import PdfSkill
    
    skill = PdfSkill()
    
    async def main():
        result = await skill.extract("/path/to/paper.pdf")
        print(result.text)          # extracted text from all pages
        print(result.metadata)      # {"pages": N, "cjk_fallback": bool, ...}
    
    asyncio.run(main())
    ```
    
    ## When this skill is used
    
    - Source path ends with `.pdf`
    - User intent contains: `pdf`, `research paper`
    
    ## Scripts
    
    - `scripts/main.py` — `PdfSkill` class
    
    ## References
    
    - `references/cjk-notes.md` — notes on CJK font handling
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.