|
|
|
@ -47,7 +47,7 @@ public class OfficeFilePreviewImpl implements FilePreview {
|
|
|
|
|
String fileName = fileAttribute.getName();
|
|
|
|
|
String filePassword = fileAttribute.getFilePassword();
|
|
|
|
|
String userToken = fileAttribute.getUserToken();
|
|
|
|
|
boolean isHtml = suffix.equalsIgnoreCase("xls") || suffix.equalsIgnoreCase("xlsx") || suffix.equalsIgnoreCase("csv");
|
|
|
|
|
boolean isHtml = suffix.equalsIgnoreCase("xls") || suffix.equalsIgnoreCase("xlsx") || suffix.equalsIgnoreCase("csv") || suffix.equalsIgnoreCase("xlsm") || suffix.equalsIgnoreCase("xlt") || suffix.equalsIgnoreCase("xltm") || suffix.equalsIgnoreCase("et") || suffix.equalsIgnoreCase("ett") || suffix.equalsIgnoreCase("xlam");
|
|
|
|
|
String pdfName = fileName.substring(0, fileName.lastIndexOf(".") + 1) + (isHtml ? "html" : "pdf");
|
|
|
|
|
String cacheFileName = userToken == null ? pdfName : userToken + "_" + pdfName;
|
|
|
|
|
String outFilePath = FILE_DIR + cacheFileName;
|
|
|
|
|