Skip to main content
Glama

ocr-pdf-legacy

Extract text from scanned PDFs using Baidu OCR API. Specify pages, language, and processing options to convert images to searchable text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesPDF 文件路径
api_keyYes百度 OCR API Key
secret_keyYes百度 OCR Secret Key
pagesNo页码范围(如 '1-3', '1,3,5', 'all'),默认 '1'(仅第一页)
language_typeNo语言类型,默认 CHN_ENG
detect_directionNo是否检测图像方向,默认 false
detect_languageNo是否检测语言,默认 false
paragraphNo是否输出段落信息,默认 false

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/3351163616/mcp_pdf_reader'

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