Appearance
informat.pdf PDF 文件相关
概述
使用informat.pdf对象进行 pdf 文件的读取
参考
文件路径必须是在本地的沙盒路径中,关于文件路径可参考 informat.file
toImages
使用 toImages 转换 pdf 为 base64 图片数组
| 参数 | 类型 | 描述 |
|---|---|---|
| path | String | pdf 文在沙盒中的路径 |
返回值 base64 文件流
示例
js
informat.pdf.toImages(localPath);getText
使用 getText 获取 pdf 文件的文本内容
| 参数 | 类型 | 描述 |
|---|---|---|
| path | String | pdf 文在沙盒中的路径 |
返回值 json
示例
js
informat.pdf.getText(localPath);自动化上传 pdf 文件并使用 AI 解析后数据插入表
请参考 pdf 智能解析

