extract_pdf_tables
Extract tables from PDF files. Provide the file path and optional page range to retrieve table data as a list of rows and columns.
Instructions
提取PDF中的表格数据。
注意:表格提取依赖PDF的结构,对于复杂或扫描版PDF可能效果不佳。
Args: file_path: PDF文件的完整路径 pages: 要提取的页码范围(可选,默认全部页面)
Returns: 包含以下信息的字典: - total_tables: 表格总数 - tables: 表格列表,每个包含: - page: 页码 - table_index: 该页中的表格索引 - rows: 行数 - cols: 列数 - data: 表格数据(二维数组)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| file_path | Yes |