|
|
|
@ -80,6 +80,21 @@ public class TempFileController {
|
|
|
|
|
//fileEntity.moveTo("D://");
|
|
|
|
|
//相对路径
|
|
|
|
|
//fileEntity.moveTo("/image");
|
|
|
|
|
tryConvertPDF(fileEntity);
|
|
|
|
|
return JsonResult.success(fileEntity);
|
|
|
|
|
|
|
|
|
|
//return JsonResult.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能描述: <br>
|
|
|
|
|
* 尝试去根据文件类型,来转换成PDF格式
|
|
|
|
|
*
|
|
|
|
|
* @param fileEntity
|
|
|
|
|
* @Author: lx
|
|
|
|
|
* @Date: 2022/12/14 0:46
|
|
|
|
|
*/
|
|
|
|
|
private void tryConvertPDF(FileEntity fileEntity) throws FileNotFoundException {
|
|
|
|
|
if (null != fileEntity) {
|
|
|
|
|
String absoluteUrl = fileEntity.getAbsoluteUrl();
|
|
|
|
|
BufferedInputStream inputStream = FileUtil.getInputStream(absoluteUrl);
|
|
|
|
@ -90,9 +105,6 @@ public class TempFileController {
|
|
|
|
|
fileEntity.set("cvPDFAbsoluteUrl", pdfName);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return JsonResult.success(fileEntity);
|
|
|
|
|
|
|
|
|
|
//return JsonResult.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//多个文件上传
|
|
|
|
|