设置路径为日本时的字体(做些简单的判断就ok)
位置:D:\workspeace\shipping-lable-web\src\main\java\com\teamsun\shipping\pdf\impl\etk\DrawNtwEtklable46_1.java
测试类位置:D:\workspeace\shipping-lable-web\src\main\java\com\teamsun\shipping\test\Test.java
添加如下代码:
else if (receverCountry.equals("JP")||receverCountry.equals("Japan")) {
ColumnText.showTextAligned(cb, Element.ALIGN_LEFT, new Paragraph(vo.getReceiver().getName(), new Font(windowblock,8f,Font.BOLD)), 48f, 260f, 90f);
if(recAddresss.length()>30){
ColumnText.showTextAligned(cb, Element.ALIGN_LEFT, new Paragraph(recAddresss1.toString(), new Font(windowblock,7.5f,Font.BOLD)), 94f, 226f, 90f);
ColumnText.showTextAligned(cb, Element.ALIGN_LEFT, new Paragraph(recAddresss2.toString(), new Font(windowblock,7.5f,Font.BOLD)), 103f, 226f, 90f);
ColumnText.showTextAligned(cb, Element.ALIGN_LEFT, new Paragraph(receverCity+" "+receverProvince, new Font(windowblock,9f,Font.BOLD)), 114f, 226f, 90f);
}else{
ColumnText.showTextAligned(cb, Element.ALIGN_LEFT, new Paragraph(recAddresss.toString(), new Font(windowblock,7.5f,Font.BOLD)), 94f, 226f, 90f);
ColumnText.showTextAligned(cb, Element.ALIGN_LEFT, new Paragraph(receverCity+" "+receverProvince, new Font(windowblock,9f,Font.BOLD)), 104f, 226f, 90f);
}