|
@@ -27,7 +27,10 @@ public class PdfFillUtils {
|
|
|
// 定义全局的字体静态变量
|
|
|
public static Font textFont28;
|
|
|
public static Font textFont24;
|
|
|
+ public static Font textFont22;
|
|
|
public static Font textFont18;
|
|
|
+ public static Font textFont16;
|
|
|
+ public static Font textFont14;
|
|
|
public static Font textFont12;
|
|
|
public static Font textFont11;
|
|
|
public static Font textFont10;
|
|
@@ -41,7 +44,10 @@ public class PdfFillUtils {
|
|
|
BaseFont bfChinese = BaseFont.createFont(AsianFontMapper.ChineseSimplifiedFont, AsianFontMapper.ChineseSimplifiedEncoding_H, BaseFont.NOT_EMBEDDED);
|
|
|
textFont28 = new Font(bfChinese, 28);
|
|
|
textFont24 = new Font(bfChinese, 24);
|
|
|
+ textFont22 = new Font(bfChinese, 22);
|
|
|
textFont18 = new Font(bfChinese, 18);
|
|
|
+ textFont16 = new Font(bfChinese, 16);
|
|
|
+ textFont14 = new Font(bfChinese, 14);
|
|
|
textFont12 = new Font(bfChinese, 12);
|
|
|
textFont11 = new Font(bfChinese, 11);
|
|
|
textFont10 = new Font(bfChinese, 10);
|
|
@@ -198,7 +204,7 @@ public class PdfFillUtils {
|
|
|
*/
|
|
|
public static PdfPCell createCell(String value, Font font, BaseColor cellColor, float fixedHeight, int horizontalAlignment, int disableBorderSide, int rowspan, int colspan) {
|
|
|
PdfPCell cell = new PdfPCell();
|
|
|
- cell.setBorderWidth(0.1F);
|
|
|
+ cell.setBorderWidth(0.5F);
|
|
|
cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
|
|
|
cell.setHorizontalAlignment(horizontalAlignment);
|
|
|
cell.setUseAscender(true);
|
|
@@ -234,7 +240,7 @@ public class PdfFillUtils {
|
|
|
*/
|
|
|
public static PdfPCell createCell(String value, Font font, float fixedHeight, int horizontalAlignment, float paddingLeft) {
|
|
|
PdfPCell cell = new PdfPCell();
|
|
|
- cell.setBorderWidth(0.1F);
|
|
|
+ cell.setBorderWidth(0.5F);
|
|
|
cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
|
|
|
cell.setHorizontalAlignment(horizontalAlignment);
|
|
|
cell.setUseAscender(true);
|
|
@@ -260,7 +266,7 @@ public class PdfFillUtils {
|
|
|
*/
|
|
|
public static PdfPCell createCell(Image image, float fixedHeight, int horizontalAlignment, int disableBorderSide, int rowspan, int colspan) {
|
|
|
PdfPCell cell = new PdfPCell(image);
|
|
|
- cell.setBorderWidth(0.1F);
|
|
|
+ cell.setBorderWidth(0.5F);
|
|
|
cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
|
|
|
cell.setUseAscender(true);
|
|
|
cell.setHorizontalAlignment(horizontalAlignment);
|