Pdf

From axoviq-ai/synthadoc · View interactive version

Pdf is an AI agent skill from the GitHub repository axoviq-ai/synthadoc. Extract text from PDF documents

How to use this skill

Skill file

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

Scripts

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.