2 Star 5 Fork 2

feyfey / analysisPdf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

analysisPdf

解析PDF文件并生成TXT/PNG/WORD

1.解析PDF文件为TXT文件

  • 调用接口 service_ip:port/utils/pdf/analysisPdf2Text
  • 请求类型 POST
  • 接口参数 filePath
  • 完整示例 service_ip:port/utils/pdf/analysisPdf2Text?filePath=D:/Others/XXX统-20210511.pdf
  • 返回示例 { "returnType": "SUCCESS", "content": "解析成功" }

2.解析PDF文件为PNG图片

  • 调用接口 service_ip:port/utils/pdf/analysisPdf2Image
  • 请求类型 POST
  • 接口参数
参数名 参数实例 参数解释
PdfFilePath D:/Others/Java开发手册.pdf 待转换pdf的具体路径
dstImgFolder D:/Others/images 转后图片存放的路径
dpi 96 DPI参数 默认96
  • 完整示例 service_ip:port/utils/pdf/analysisPdf2Image?PdfFilePath=D:/Others/Java开发手册.docx&dstImgFolder=D:/Others/images&dpi=96
  • 返回示例 { "returnType": "FAILURE", "content": "传入文件不是PDF文档,请检查!" }

3.解析PDF文件为Word文档

  • 调用接口 service_ip:port/utils/pdf/analysisPdf2Doc
  • 请求类型 POST
  • 接口参数
参数名 参数实例 参数解释
PdfFilePath D:/Others/Java开发手册.pdf 待转换pdf的具体路径
docFolder D:/Others/doc 转后word存放的路径
  • 完整示例 service_ip:port/utils/pdf/analysisPdf2Doc?PdfFilePath=D:/Others/Java开发手册.pdf&docFolder=D:/Others/doc

  • 返回示例 {"returnType":"SUCCESS","content":"转换成功"}

  • 特殊说明 转word使用的jar为基础免费版本,只可转换10页及以内的文档内容

MIT License Copyright (c) 2022 feyfey Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

解析PDF文件并生成TXT/PNG/WORD 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/zhuxianfei/analysisPdf.git
git@gitee.com:zhuxianfei/analysisPdf.git
zhuxianfei
analysisPdf
analysisPdf
master

搜索帮助