diff --git a/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java b/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java index cc870e12..5cec74f9 100644 --- a/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java +++ b/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java @@ -1716,8 +1716,14 @@ public class EstimateService { } } + // 섹션별 방향 설정 (이미지가 들어가는 섹션은 가로) + java.util.Map sectionOrientation = new java.util.HashMap<>(); + sectionOrientation.put("div.section3", true); // 발전시뮬레이션 - 가로 + sectionOrientation.put("div.section4", true); // 도면 - 가로 + sectionOrientation.put("div.section5", true); // 도면 - 가로 + // pdf 다운로드 - PdfUtil.pdfDownload(request, response, doc, estimateRequest.getFileName(), arrSection); + PdfUtil.pdfDownload(request, response, doc, estimateRequest.getFileName(), arrSection, false, sectionOrientation); } else { @@ -2491,7 +2497,7 @@ public class EstimateService { if (data.getDrawingImg1() != null) { elm = doc.getElementById("drawingImg1"); String imgSrc1 = Base64.getEncoder().encodeToString(data.getDrawingImg1()); - elm.html(""); + elm.html(""); } if (data.getRoofInfo().getCompasDegImg() != null) { @@ -2608,7 +2614,7 @@ public class EstimateService { if (data.getDrawingImg2() != null) { elm = doc.getElementById("drawingImg2"); String imgSrc2 = Base64.getEncoder().encodeToString(data.getDrawingImg2()); - elm.html(""); + elm.html(""); } if (data.getRoofInfo().getCompasDegImg() != null) {