|
|
|
@ -353,26 +353,30 @@ public class Sprt01ServiceBean extends AbstractServiceBean implements Sprt01Serv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(DefaultOtptStng predefined : predefinedList) {
|
|
|
|
|
|
|
|
|
|
DataObject otptItemStng = byOtptItemStng.get(predefined.getOtptNm());
|
|
|
|
|
String otptNm = predefined.getOtptNm();
|
|
|
|
|
DataObject otptItemStng = byOtptItemStng.get(otptNm);
|
|
|
|
|
|
|
|
|
|
float[] pstn = pdfPrintUtil.getPstnStng(predefined, otptItemStng, otptPaperSeCd);
|
|
|
|
|
|
|
|
|
|
if(predefined.getContentType().equals("text")) {
|
|
|
|
|
String defaultValue = predefined.getOtptBscVl();
|
|
|
|
|
|
|
|
|
|
String textValue = pdfPrintUtil.getTextValue(predefined, otptItemStng, dataObject);
|
|
|
|
|
if(predefined.getContentType().equals("text")) {
|
|
|
|
|
|
|
|
|
|
PDType0Font font = pdfPrintUtil.getFontStng(predefined, otptItemStng, fontMap);
|
|
|
|
|
int fontSz = pdfPrintUtil.getFontSize(predefined, otptItemStng);
|
|
|
|
|
RenderingMode fontStyle = pdfPrintUtil.getFontStyle(predefined, otptItemStng);
|
|
|
|
|
PDColor fontColor = pdfPrintUtil.getFontColor(predefined, otptItemStng);
|
|
|
|
|
|
|
|
|
|
String textValue = pdfFormat.getMappingValue(otptNm,defaultValue,dataObject,printOption,pdfPrintUtil);
|
|
|
|
|
|
|
|
|
|
pdfPrintUtil.writeText(contentStream, textValue, pstn, font, fontSz, fontStyle, fontColor);
|
|
|
|
|
|
|
|
|
|
} else if(predefined.getContentType().equals("image")) {
|
|
|
|
|
|
|
|
|
|
String imagePath = pdfPrintUtil.getImagePath(predefined, otptItemStng, dataObject);
|
|
|
|
|
float[] size = pdfPrintUtil.getSize(predefined, otptItemStng);
|
|
|
|
|
|
|
|
|
|
String imagePath = pdfFormat.getMappingValue(otptNm,defaultValue,dataObject,printOption,pdfPrintUtil);
|
|
|
|
|
|
|
|
|
|
pdfPrintUtil.insertImage(doc, contentStream, imagePath, pstn, size);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|