pdf출력 수정

main
이범준 12 months ago
parent b900792325
commit 4486f6306d

@ -87,14 +87,18 @@ public class PDFPrintUtil extends PrintUtil {
contentStream.setNonStrokingColor(fontColor); contentStream.setNonStrokingColor(fontColor);
float resultY = xyAbsolute[1] - fontSize;
float resultX;
if(align.equals("right")) { if(align.equals("right")) {
contentStream.newLineAtOffset(xyAbsolute[0] - textWidth + textAreaWidth_pt, xyAbsolute[1]); resultX = xyAbsolute[0] - textWidth + textAreaWidth_pt;
} else if(align.equals("center")){ } else if(align.equals("center")){
contentStream.newLineAtOffset(xyAbsolute[0] - textHalfWidth + textAreaHalfWidth_pt, xyAbsolute[1]); resultX = xyAbsolute[0] - textHalfWidth + textAreaHalfWidth_pt;
} else { } else {
contentStream.newLineAtOffset(xyAbsolute[0], xyAbsolute[1]); resultX = xyAbsolute[0];
} }
contentStream.newLineAtOffset(resultX, resultY);
contentStream.showText(text); contentStream.showText(text);
contentStream.endText(); contentStream.endText();
@ -168,8 +172,8 @@ public class PDFPrintUtil extends PrintUtil {
} }
public int getFontSize(DefaultOtptStng defaultStng, DataObject sggStng) { public int getFontSize(DefaultOtptStng defaultStng, DataObject sggStng) {
if(!sggStng.string("FONT_SIZE").equals("")) { if(!sggStng.string("FONT_SZ").equals("")) {
return sggStng.number("FONT_SIZE").intValue(); return sggStng.number("FONT_SZ").intValue();
} else { } else {
return defaultStng.getFontSize(); return defaultStng.getFontSize();
} }

@ -16,18 +16,18 @@ public class Advntce extends PDFFormat {
public Advntce(){ public Advntce(){
addForPost( addForPost(
image("postSenderLogo","").a4(10, 0).letter(0, 0).size(0, 0), image("postSenderLogo","").a4(10, 0).letter(0, 0).size(0, 0),
text("postSenderInst","").a4(10, 10).letter(0, 0), text("postSenderInst","").a4(10, 5).letter(0, 0),
text("postSenderDept","").a4(50, 10).letter(0, 0), text("postSenderDept","").a4(50, 5).letter(0, 0),
text("postSenderAddr","").a4(10, 20).letter(0, 0), text("postSenderAddr","").a4(10, 15).letter(0, 0),
text("postSenderDtlAddr","").a4(10, 30).letter(0, 0), text("postSenderDtlAddr","").a4(10, 25).letter(0, 0),
text("postSenderZip","").a4(10, 40).letter(0, 0), text("postSenderZip","").a4(10, 35).letter(0, 0),
text("postSenderTel","").a4(10, 50).letter(0, 0), text("postSenderTel","").a4(10, 45).letter(0, 0),
text("postSenderFax","").a4(50, 50).letter(0, 0), text("postSenderFax","").a4(50, 45).letter(0, 0),
text("postReceiverAddr","").a4(100, 50).letter(0, 0).size(90, 0).align("right"), text("postReceiverAddr","").a4(100, 40).letter(0, 0).size(90, 0).align("right"),
text("postReceiverDtlAddr","").a4(100, 60).letter(0, 0).size(90, 0).align("right"), text("postReceiverDtlAddr","").a4(100, 50).letter(0, 0).size(90, 0).align("right"),
text("postReceiver","").a4(100, 70).letter(0, 0).size(90, 0).align("right"), text("postReceiver","").a4(100, 60).letter(0, 0).size(90, 0).align("right"),
text("postReceiverZip","").a4(100, 80).letter(0, 0).size(90, 0).align("right") text("postReceiverZip","").a4(100, 70).letter(0, 0).size(90, 0).align("right")
); );
add( add(

@ -83,7 +83,6 @@
, L.INSPY_SN /* 분납 순번 */ , L.INSPY_SN /* 분납 순번 */
, (CONCAT(L.FYR, '-', L.LEVY_NO)) AS GOJI_NO /* 고지번호 */ , (CONCAT(L.FYR, '-', L.LEVY_NO)) AS GOJI_NO /* 고지번호 */
, (SELECT GET_CODE_NM('FIM040', L.LEVY_SE_CD) FROM DUAL) AS LEVY_SE_NM /* 부과 구분 명 */ , (SELECT GET_CODE_NM('FIM040', L.LEVY_SE_CD) FROM DUAL) AS LEVY_SE_NM /* 부과 구분 명 */
, L.RCVMT_SE_NM /* 수납 구분 명 */
, L.LEVY_PCPTAX /* 부과 본세 */ , L.LEVY_PCPTAX /* 부과 본세 */
, L.LEVY_ADAMT /* 부과 가산금 */ , L.LEVY_ADAMT /* 부과 가산금 */
, L.INSPY_INT /* 분납 이자 */ , L.INSPY_INT /* 분납 이자 */

@ -18,6 +18,7 @@ SELECT OTPT_FORM_ID
, FONT_SZ , FONT_SZ
, FONT_COLOR , FONT_COLOR
, FONT_STYLE , FONT_STYLE
, TEXT_SORT
FROM TB_OTPT_FORM FROM TB_OTPT_FORM
WHERE USE_YN = 'Y' WHERE USE_YN = 'Y'
AND SGG_CD = #{sggCd} AND SGG_CD = #{sggCd}

Loading…
Cancel
Save