Skip to main content
Glama
test_pdf.py480 B
import sys from pathlib import Path # Add the project root to Python path project_root = Path(__file__).parent.parent sys.path.insert(0, str(project_root)) from docnav.processors import PDFProcessor import asyncio processor = PDFProcessor() async def main(): document = await processor.process(Path("tests/test_report_pdf/txt/test_report_pdf_origin.pdf")) # print(document.get_outline(7)) print(document.source_text) # Run the async function asyncio.run(main())

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shenyimings/DocNav-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server