{
    "openapi": "3.0.0",
    "info": {
        "title": "PDF抽取文本 - API文档",
        "version": "1.0.0",
        "description": "提供高效、准确的 PDF 文档内容提取能力，支持从文字型 PDF 文件中自动识别并提取可读文本，返回结构化的文本内容。方便集成到企业内部系统、自动化流程或第三方应用中，帮助用户快速获取结构化或非结构化文本数据，提升文档处理效率。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/pdftext\/index": {
            "post": {
                "summary": "抽取pdf文本内容",
                "tags": [
                    "PDF抽取文本"
                ],
                "description": "支持文字型pdf正文抽取，返回结构化的文本内容",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "pdffile": {
                                        "type": "file",
                                        "example": "数据流",
                                        "description": "上传pdf文件"
                                    },
                                    "pdfbase64": {
                                        "type": "string",
                                        "example": "base64",
                                        "description": "pdf文件base64"
                                    }
                                },
                                "required": [
                                    "key",
                                    "pdffile"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "text": {
                                            "type": "string",
                                            "example": "6232878723987956",
                                            "description": "每页文本内容"
                                        },
                                        "remark": {
                                            "type": "string",
                                            "example": "successful",
                                            "description": "备注信息"
                                        },
                                        "total_pages": {
                                            "type": "int",
                                            "example": 2,
                                            "description": "文件总页数"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "text": "开发中文教育类应用？这个拆字 API 你不能错过场景。古籍数字化辅助..."
                                            },
                                            {
                                                "text": "开发者如何用 API 快速打造“识宠”小程序？最佳实践建议..."
                                            }
                                        ],
                                        "remark": "successful",
                                        "total_pages": 1
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}