no message

main
이범준 7 months ago
parent 300b6e2efd
commit fdf9774ef8

@ -17,8 +17,8 @@ import kr.dogfoot.hwplib.reader.HWPReader;
public abstract class HWPFormat { public abstract class HWPFormat {
protected HWPWriter writer; protected HWPWriter writer;
protected PrintOption printOption;
protected Print print; protected Print print;
protected PrintOption printOption;
protected List<DataObject> data; protected List<DataObject> data;
protected String formatFilePath; protected String formatFilePath;

@ -88,7 +88,6 @@ public class Advntce extends PDFPrintFormat {
DataObject otptBscStng, List<DataObject> otptArtclStngList, String paperSeCd, List<DataObject> data){ DataObject otptBscStng, List<DataObject> otptArtclStngList, String paperSeCd, List<DataObject> data){
super(print,printOption,otptBscStng,otptArtclStngList,paperSeCd, data); super(print,printOption,otptBscStng,otptArtclStngList,paperSeCd, data);
this.print.setFormatKorName("사전통지서"); this.print.setFormatKorName("사전통지서");
this.sndngSeCd = "02";
} }
/** /**

@ -98,7 +98,6 @@ public class Nht extends PDFPrintFormat {
DataObject otptBscStng, List<DataObject> otptArtclStngList, String paperSeCd, List<DataObject> data) { DataObject otptBscStng, List<DataObject> otptArtclStngList, String paperSeCd, List<DataObject> data) {
super(print,printOption,otptBscStng,otptArtclStngList,paperSeCd, data); super(print,printOption,otptBscStng,otptArtclStngList,paperSeCd, data);
this.print.setFormatKorName("고지서"); this.print.setFormatKorName("고지서");
this.sndngSeCd = "03";
} }

@ -32,7 +32,7 @@ import cokr.xit.fims.sprt.MediaUtil;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
public abstract class PDFPrintFormat { public abstract class PDFPrintFormat {
protected String sndngSeCd; protected PDFWriter writer;
protected Print print; protected Print print;
protected PrintOption printOption; protected PrintOption printOption;
@ -230,13 +230,12 @@ public abstract class PDFPrintFormat {
public Map<String, Object> makeFile() { public Map<String, Object> makeFile() {
Map<String, Object> result = new HashMap<>(); Map<String, Object> result = new HashMap<>();
PDFWriter writer = new PDFWriter(); writer = new PDFWriter();
//폰트 로드 //폰트 로드
Map<String, PDType0Font> fontMap = this.getFontMap(writer); Map<String, PDType0Font> fontMap = this.getFontMap(writer);
//용지 크기 설정 //용지 크기 설정
//PDRectangle paper = null;
if(this.paperSeCd.equals("01")) { if(this.paperSeCd.equals("01")) {
writer.paper("A4"); writer.paper("A4");
} else { } else {

Loading…
Cancel
Save