feat: 新增 convert 转换pdf子项目
This commit is contained in:
@@ -14,6 +14,24 @@ public class DocConverterPdf {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(DocConverterPdf.class);
|
||||
|
||||
/**
|
||||
* 在所需的类里 添加下面配置
|
||||
* // 文档转换远程服务IP地址
|
||||
* @Value("${convert.host}")
|
||||
* private String convertHost;
|
||||
*
|
||||
*
|
||||
* fileString : 新替换的文件名
|
||||
* fileType : 文件后缀类型
|
||||
* 调用方法如下
|
||||
* DocConverterPdf d = new DocConverterPdf(fileString,fileType);
|
||||
* d.setConvertHost(convertHost);
|
||||
* //调用conver方法开始转换
|
||||
* File getPdf = d.conver(fileType);
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
private static final int ENVIRONMENT = 1;// 环境 1:windows 2:linux
|
||||
private String fileString;// (只涉及pdf2swf路径问题)
|
||||
private String outputPath = "";// 输入路径 ,如果不设置就输出在默认的位置
|
||||
|
||||
Reference in New Issue
Block a user