From abf1f91a39d1543c649cdce42b584c2e1d640d76 Mon Sep 17 00:00:00 2001 From: ysCha Date: Wed, 11 Mar 2026 11:03:06 +0900 Subject: [PATCH] =?UTF-8?q?[1268][1295]=20pdf=20=EC=B6=9C=EB=A0=A5=20?= =?UTF-8?q?=EC=84=B8=EB=A1=9C->=EA=B0=80=EB=A1=9C=20=ED=98=BC=ED=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qcast/biz/estimate/EstimateService.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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) {