From b1cc53bab12e4bf946fcaaa2e99f5baa61f79ef9 Mon Sep 17 00:00:00 2001 From: leebj Date: Mon, 9 Sep 2024 18:34:43 +0900 Subject: [PATCH] =?UTF-8?q?pdf=20=EB=AF=B8=EB=A6=AC=EB=B3=B4=EA=B8=B0=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/resources/applib/html/pdf.html | 48 +++++-------------- .../webapp/resources/applib/js/app-support.js | 6 ++- 2 files changed, 17 insertions(+), 37 deletions(-) diff --git a/src/main/webapp/resources/applib/html/pdf.html b/src/main/webapp/resources/applib/html/pdf.html index 291b719..5d7b4d4 100644 --- a/src/main/webapp/resources/applib/html/pdf.html +++ b/src/main/webapp/resources/applib/html/pdf.html @@ -3,54 +3,32 @@ - - - - - - - - - - - - - - - - - - 샘플 보기 -
+
- - - - - - - - - - - - - - - - diff --git a/src/main/webapp/resources/applib/js/app-support.js b/src/main/webapp/resources/applib/js/app-support.js index 7e98ec5..003470b 100644 --- a/src/main/webapp/resources/applib/js/app-support.js +++ b/src/main/webapp/resources/applib/js/app-support.js @@ -213,13 +213,15 @@ class AppSupport { * PDF파일 미리보기 창 열기 **************************************************************************/ static openPDF(blob, windowName){ - + let wctxpath = wctx.path; + var popup = window.open( - wctx.url("/webjars/applib/html/pdf.html") + wctx.url("/webjars/applib/html/pdf.html")+"?wctxpath="+wctxpath ,windowName ,'top=10, left=10' ); popup.onload = () => { + popup.makePdfFromBlob(blob); }; }