feat: 新增 convert 转换pdf子项目
This commit is contained in:
@@ -14,6 +14,24 @@ public class DocConverterPdf {
|
|||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(DocConverterPdf.class);
|
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 static final int ENVIRONMENT = 1;// 环境 1:windows 2:linux
|
||||||
private String fileString;// (只涉及pdf2swf路径问题)
|
private String fileString;// (只涉及pdf2swf路径问题)
|
||||||
private String outputPath = "";// 输入路径 ,如果不设置就输出在默认的位置
|
private String outputPath = "";// 输入路径 ,如果不设置就输出在默认的位置
|
||||||
|
|||||||
@@ -147,3 +147,7 @@ elasticsearch.ip=172.17.0.1
|
|||||||
elasticsearch.port=9300
|
elasticsearch.port=9300
|
||||||
elasticsearch.poolSize=5
|
elasticsearch.poolSize=5
|
||||||
elas.flag=true
|
elas.flag=true
|
||||||
|
|
||||||
|
# 文档转换TCP通讯地址
|
||||||
|
convert.host=127.0.0.1
|
||||||
|
#convert.host=0.0.0.0
|
||||||
|
|||||||
@@ -23,6 +23,12 @@
|
|||||||
<version>3.0.0</version>
|
<version>3.0.0</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.adc</groupId>
|
||||||
|
<artifactId>adc-da-convert</artifactId>
|
||||||
|
<version>3.0.0</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.sf.json-lib</groupId>
|
<groupId>net.sf.json-lib</groupId>
|
||||||
<artifactId>json-lib</artifactId>
|
<artifactId>json-lib</artifactId>
|
||||||
|
|||||||
+7
@@ -102,6 +102,13 @@ public class SarBussionessStand extends BaseEntity {
|
|||||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private Date modifyTime;
|
private Date modifyTime;
|
||||||
|
|
||||||
|
// 新添加字段
|
||||||
|
@ApiModelProperty(value = "文本状态")
|
||||||
|
@TableField("TEXT_STATUS_BUSS")
|
||||||
|
private String textStatusBuss;
|
||||||
|
|
||||||
|
|
||||||
|
// 非表字段
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private String firstPutTime;
|
private String firstPutTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user