pdf추출 수정

main
이범준 10 months ago
parent 94cc54bb86
commit 20b321ff9d

@ -12,7 +12,7 @@ import org.apache.pdfbox.pdmodel.PDPageTree;
public class PDFUtil { public class PDFUtil {
public static List<Extraction> extract(String pdfPath, String templateId) { public static List<Extraction> extract(String pdfPath, String taskSeCd, String templateId) {
List<Extraction> extractList = new ArrayList<Extraction>(); List<Extraction> extractList = new ArrayList<Extraction>();
@ -42,7 +42,7 @@ public class PDFUtil {
extraction = new Extraction(); extraction = new Extraction();
extraction.setPage(pageIndex+1); extraction.setPage(pageIndex+1);
//설정 = mapper.get설정(query.setSggCd().setTemplateId(templateId)); //설정 = mapper.get설정(query.setSggCd().setTaskSeCd(taskSeCd).setTemplateId(templateId));
String epayNo = ExtractText.getExtractByStng(pdDocument, pageIndex+1, 0, 0, 100, 100); String epayNo = ExtractText.getExtractByStng(pdDocument, pageIndex+1, 0, 0, 100, 100);
extraction.setEpayNo(epayNo); extraction.setEpayNo(epayNo);

@ -130,6 +130,10 @@
<div id="additionalStep" class="content"> <!-- 스텝콘텐츠3 --> <div id="additionalStep" class="content"> <!-- 스텝콘텐츠3 -->
<form name="form3" id="form3"> <form name="form3" id="form3">
<label>과태료구분</label>
<select id="taskSeCd" name="taskSeCd" class="form-select">
<option value="PVS">주정차</option>
</select>
<label>서식</label> <label>서식</label>
<select id="tmplatId" name="tmplatId" class="form-select"> <select id="tmplatId" name="tmplatId" class="form-select">
<option value="JU001">사전통지서</option> <option value="JU001">사전통지서</option>
@ -241,7 +245,10 @@ $("#btnComplete").on("click", function(){
filePath : $("#filePath").val(), filePath : $("#filePath").val(),
job : $("#selectJob").val(), job : $("#selectJob").val(),
}; };
var param = '{ ' + '"tmplatId"' + ' : ' + '"' + $("#tmplatId").val() + '"' + ' }'; var param = '{ '
+ '"tmplatId"' + ' : ' + '"' + $("#tmplatId").val() + '"' + ','
+ '"taskSeCd"' + ' : ' + '"' + $("#taskSeCd").val() + '"'
+ ' }';
data.param = param; data.param = param;

Loading…
Cancel
Save