@@ -40,6 +40,18 @@ | |||||
<optional>true</optional> | <optional>true</optional> | ||||
</dependency> | </dependency> | ||||
<!-- PDF --> | |||||
<dependency> | |||||
<groupId>com.itextpdf</groupId> | |||||
<artifactId>itextpdf</artifactId> | |||||
<optional>true</optional> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>com.itextpdf</groupId> | |||||
<artifactId>itext-asian</artifactId> | |||||
<optional>true</optional> | |||||
</dependency> | |||||
<!-- google 工具类 --> | <!-- google 工具类 --> | ||||
<dependency> | <dependency> | ||||
<groupId>com.google.guava</groupId> | <groupId>com.google.guava</groupId> | ||||
@@ -37,7 +37,7 @@ import org.jeecgframework.poi.excel.export.template.ExcelExportOfTemplateUtil; | |||||
* @version 1.0 | * @version 1.0 | ||||
* @date 2013-10-17 | * @date 2013-10-17 | ||||
*/ | */ | ||||
public final class ExcelExportUtil { | |||||
public class ExcelExportUtil { | |||||
private ExcelExportUtil() { | private ExcelExportUtil() { | ||||
} | } | ||||
@@ -38,7 +38,7 @@ import org.slf4j.LoggerFactory; | |||||
* @version 1.0 | * @version 1.0 | ||||
*/ | */ | ||||
@SuppressWarnings({ "unchecked" }) | @SuppressWarnings({ "unchecked" }) | ||||
public final class ExcelImportUtil { | |||||
public class ExcelImportUtil { | |||||
private ExcelImportUtil() { | private ExcelImportUtil() { | ||||
} | } | ||||
@@ -9,7 +9,7 @@ import org.jeecgframework.poi.excel.entity.ExcelToHtmlParams; | |||||
* @author JueYue | * @author JueYue | ||||
* @date 2015年5月10日 上午11:51:48 | * @date 2015年5月10日 上午11:51:48 | ||||
*/ | */ | ||||
public final class ExcelToHtmlUtil { | |||||
public class ExcelToHtmlUtil { | |||||
private ExcelToHtmlUtil() { | private ExcelToHtmlUtil() { | ||||
} | } | ||||
@@ -318,13 +318,4 @@ public class ExcelExportServer extends ExcelExportBase { | |||||
return 1; | return 1; | ||||
} | } | ||||
private ExcelExportEntity indexExcelEntity(ExportParams entity) { | |||||
ExcelExportEntity exportEntity = new ExcelExportEntity(); | |||||
exportEntity.setOrderNum(0); | |||||
exportEntity.setName(entity.getIndexName()); | |||||
exportEntity.setWidth(10); | |||||
exportEntity.setFormat(PoiBaseConstants.IS_ADD_INDEX); | |||||
return exportEntity; | |||||
} | |||||
} | } |
@@ -31,7 +31,9 @@ import org.apache.commons.lang3.StringUtils; | |||||
import org.jeecgframework.poi.excel.annotation.Excel; | import org.jeecgframework.poi.excel.annotation.Excel; | ||||
import org.jeecgframework.poi.excel.annotation.ExcelCollection; | import org.jeecgframework.poi.excel.annotation.ExcelCollection; | ||||
import org.jeecgframework.poi.excel.annotation.ExcelEntity; | import org.jeecgframework.poi.excel.annotation.ExcelEntity; | ||||
import org.jeecgframework.poi.excel.entity.ExportParams; | |||||
import org.jeecgframework.poi.excel.entity.params.ExcelExportEntity; | import org.jeecgframework.poi.excel.entity.params.ExcelExportEntity; | ||||
import org.jeecgframework.poi.excel.entity.vo.PoiBaseConstants; | |||||
import org.jeecgframework.poi.handler.inter.IExcelDataHandler; | import org.jeecgframework.poi.handler.inter.IExcelDataHandler; | ||||
import org.jeecgframework.poi.util.PoiPublicUtil; | import org.jeecgframework.poi.util.PoiPublicUtil; | ||||
import org.jeecgframework.poi.util.PoiReflectorUtil; | import org.jeecgframework.poi.util.PoiReflectorUtil; | ||||
@@ -336,5 +338,19 @@ public class ExportBase { | |||||
} | } | ||||
} | } | ||||
} | } | ||||
/** | |||||
* 添加Index列 | |||||
* @param entity | |||||
* @return | |||||
*/ | |||||
public ExcelExportEntity indexExcelEntity(ExportParams entity) { | |||||
ExcelExportEntity exportEntity = new ExcelExportEntity(); | |||||
exportEntity.setOrderNum(0); | |||||
exportEntity.setName(entity.getIndexName()); | |||||
exportEntity.setWidth(10); | |||||
exportEntity.setFormat(PoiBaseConstants.IS_ADD_INDEX); | |||||
return exportEntity; | |||||
} | |||||
} | } |
@@ -27,7 +27,7 @@ import org.jeecgframework.poi.word.parse.ParseWord07; | |||||
* @date 2013-11-16 | * @date 2013-11-16 | ||||
* @version 1.0 | * @version 1.0 | ||||
*/ | */ | ||||
public final class WordExportUtil { | |||||
public class WordExportUtil { | |||||
private WordExportUtil() { | private WordExportUtil() { | ||||
@@ -138,6 +138,20 @@ | |||||
<optional>true</optional> | <optional>true</optional> | ||||
</dependency> | </dependency> | ||||
<!-- PDF --> | |||||
<dependency> | |||||
<groupId>com.itextpdf</groupId> | |||||
<artifactId>itextpdf</artifactId> | |||||
<version>5.5.6</version> | |||||
<optional>true</optional> | |||||
</dependency> | |||||
<dependency> | |||||
<groupId>com.itextpdf</groupId> | |||||
<artifactId>itext-asian</artifactId> | |||||
<version>5.2.0</version> | |||||
</dependency> | |||||
<!-- 模块版本 --> | <!-- 模块版本 --> | ||||
<dependency> | <dependency> | ||||
<groupId>org.jeecg</groupId> | <groupId>org.jeecg</groupId> | ||||