TIF转换修改 1转换PDF保留缓存 代码精简优化

TIF转换修改 1转换PDF保留缓存 代码精简优化

Signed-off-by: 高雄 <admin@cxcp.com>
pull/84/head
高雄 2023-04-04 01:13:03 +00:00 committed by Gitee
parent b524963892
commit 6c5bceba41
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 9 additions and 0 deletions

View File

@ -83,6 +83,15 @@ public class TiffFilePreviewImpl implements FilePreview {
}
} else {
File fileTiff = new File(strLocalTif);
// 如果本地不存在这个tif文件则下载
if (!fileTiff.exists()) {
ReturnResponse<String> response = DownloadUtils.downLoad(fileAttribute, fileName);
if (response.isFailure()) {
return otherFilePreview.notSupportedFile(model, fileAttribute, response.getMsg());
}
strLocalTif = response.getContent();
}
// 以JPG模式预览的过程
String strJpgFilePathName = fileDir + jpgName;
// 将tif转换为jpg返回转换后的文件路径、文件名的list