|
|
@ -338,6 +338,7 @@ public class Sprt01ServiceBean extends AbstractServiceBean implements Sprt01Serv
|
|
|
|
|
|
|
|
|
|
|
|
for(int j=0; j<fileInfoList.size(); j++) {
|
|
|
|
for(int j=0; j<fileInfoList.size(); j++) {
|
|
|
|
dataObject.set("CRDN_PHOTO"+(j+1), fileInfoList.get(j).string("URL"));
|
|
|
|
dataObject.set("CRDN_PHOTO"+(j+1), fileInfoList.get(j).string("URL"));
|
|
|
|
|
|
|
|
dataObject.set("CRDN_PHOTO"+(j+1)+"KEY", fileInfoList.get(j).string("FILE_ID"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -466,12 +467,37 @@ public class Sprt01ServiceBean extends AbstractServiceBean implements Sprt01Serv
|
|
|
|
} else if(prototypeStng.getComponentType().equals("image")) {
|
|
|
|
} else if(prototypeStng.getComponentType().equals("image")) {
|
|
|
|
|
|
|
|
|
|
|
|
String imagePath = pdfFormat.getMappingValue(otptArtclNm,defaultValue,forPost,dataObject,printOption,pdfPrintUtil);
|
|
|
|
String imagePath = pdfFormat.getMappingValue(otptArtclNm,defaultValue,forPost,dataObject,printOption,pdfPrintUtil);
|
|
|
|
|
|
|
|
String imageKey = "";
|
|
|
|
|
|
|
|
if(otptArtclNm.equals("rprsCrdnPhoto")) {
|
|
|
|
|
|
|
|
imageKey = pdfFormat.getMappingValue(otptArtclNm+"Key",defaultValue,forPost,dataObject,printOption,pdfPrintUtil);
|
|
|
|
|
|
|
|
}
|
|
|
|
pdfPrintUtil.insertImage(doc, contentStream, imagePath, pstn, size);
|
|
|
|
pdfPrintUtil.insertImage(doc, contentStream, imagePath, pstn, size);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(otptArtclNm.equals("rprsCrdnPhoto") && !imageKey.equals("")) {
|
|
|
|
|
|
|
|
String blackImage = "samplefiles/black.png";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<PstnAndSize> transformedMosaicInfos = mosaicBean.getTransformedMosaic(
|
|
|
|
|
|
|
|
imageKey, imagePath, new PstnAndSize(pstn[0],pstn[1], size[0], size[1])
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(int k=0; k < transformedMosaicInfos.size(); k++) {
|
|
|
|
|
|
|
|
PstnAndSize mosaicInfo = transformedMosaicInfos.get(k);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pdfPrintUtil.insertImage(doc, contentStream, blackImage,
|
|
|
|
|
|
|
|
mosaicInfo.getPstn().to2Float(), mosaicInfo.getSize().to2Float());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
} else if(prototypeStng.getComponentType().equals("images")) {
|
|
|
|
} else if(prototypeStng.getComponentType().equals("images")) {
|
|
|
|
|
|
|
|
|
|
|
|
List<String> imagePaths = pdfFormat.getMappingValues(otptArtclNm,defaultValue,forPost,dataObject,printOption,pdfPrintUtil);
|
|
|
|
List<String> imagePaths = pdfFormat.getMappingValues(otptArtclNm,defaultValue,forPost,dataObject,printOption,pdfPrintUtil);
|
|
|
|
|
|
|
|
List<String> imageKeys = new ArrayList<String>();
|
|
|
|
|
|
|
|
if(otptArtclNm.equals("crdnPhoto")) {
|
|
|
|
|
|
|
|
imageKeys = pdfFormat.getMappingValues(otptArtclNm+"Key",defaultValue,forPost,dataObject,printOption,pdfPrintUtil);
|
|
|
|
|
|
|
|
if(rprsCrdnPhotoYn && imagePaths.size() > 0) {
|
|
|
|
|
|
|
|
imageKeys.remove(0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(otptArtclNm.equals("crdnPhoto")) {
|
|
|
|
if(otptArtclNm.equals("crdnPhoto")) {
|
|
|
|
if(rprsCrdnPhotoYn && imagePaths.size() > 0) {
|
|
|
|
if(rprsCrdnPhotoYn && imagePaths.size() > 0) {
|
|
|
@ -492,6 +518,23 @@ public class Sprt01ServiceBean extends AbstractServiceBean implements Sprt01Serv
|
|
|
|
pdfPrintUtil.insertImage(doc, contentStream,
|
|
|
|
pdfPrintUtil.insertImage(doc, contentStream,
|
|
|
|
imagePaths.get(i), devideInfo.getPstn().to2Float(), devideInfo.getSize().to2Float());
|
|
|
|
imagePaths.get(i), devideInfo.getPstn().to2Float(), devideInfo.getSize().to2Float());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(otptArtclNm.equals("crdnPhoto") && !imageKeys.isEmpty()) {
|
|
|
|
|
|
|
|
String blackImage = "samplefiles/black.png";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<PstnAndSize> transformedMosaicInfos = mosaicBean.getTransformedMosaic(
|
|
|
|
|
|
|
|
imageKeys.get(i), imagePaths.get(i), devideInfo
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(int k=0; k < transformedMosaicInfos.size(); k++) {
|
|
|
|
|
|
|
|
PstnAndSize mosaicInfo = transformedMosaicInfos.get(k);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pdfPrintUtil.insertImage(doc, contentStream, blackImage,
|
|
|
|
|
|
|
|
mosaicInfo.getPstn().to2Float(), mosaicInfo.getSize().to2Float());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|