|
|
|
@ -26,7 +26,9 @@ public class MesTraceabilityTemp {
|
|
|
|
|
|
|
|
|
|
public static String getMesTraceabilityTemp(MesTraceabilityReportModel mesTraceabilityReportModel) throws DocumentException, IOException {
|
|
|
|
|
Document document = new Document();
|
|
|
|
|
BaseFont bfChinese = BaseFont.createFont("C:\\Windows\\Fonts\\simhei.ttf", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
|
|
|
|
|
//本地地址
|
|
|
|
|
//BaseFont bfChinese = BaseFont.createFont("C:\\Windows\\Fonts\\simhei.ttf", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
|
|
|
|
|
BaseFont bfChinese = BaseFont.createFont(MesCommonConstant.FONDS_TEMP_PATH + "SIMHEI.TTF", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
|
|
|
|
|
Font whiteFont = new Font(bfChinese, 8, Font.NORMAL);
|
|
|
|
|
whiteFont.setColor(BaseColor.WHITE);
|
|
|
|
|
Font valueFont = new Font(bfChinese, 8, Font.NORMAL);
|
|
|
|
|