Browse Source

pdf默认预览模式也从配置文件中取,和word ppt统一

pull/9/head
陈精华 6 years ago committed by kl
parent
commit
90554462dc
  1. 2
      jodconverter-web/src/main/java/cn/keking/service/impl/PdfFilePreviewImpl.java

2
jodconverter-web/src/main/java/cn/keking/service/impl/PdfFilePreviewImpl.java

@ -39,7 +39,7 @@ public class PdfFilePreviewImpl implements FilePreview{
String decodedUrl=fileAttribute.getDecodedUrl();
String suffix=fileAttribute.getSuffix();
String fileName=fileAttribute.getName();
String officePreviewType = model.asMap().get("officePreviewType") == null ? "" : model.asMap().get("officePreviewType").toString();
String officePreviewType = model.asMap().get("officePreviewType") == null ? ConfigConstants.getOfficePreviewType() : model.asMap().get("officePreviewType").toString();
String originUrl = model.asMap().get("originUrl").toString();
model.addAttribute("pdfUrl", url);
String pdfName = fileName.substring(0, fileName.lastIndexOf(".") + 1) + "pdf";

Loading…
Cancel
Save