From b54f6f03150dd78d86db62201b6386bf14b72394 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Wed, 15 Oct 2025 12:52:11 +0000
Subject: (대표님) 커버, 데이터룸, 파일매니저, 담당자할당 등
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/file-manager/SecurePDFViewer.tsx | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'components/file-manager/SecurePDFViewer.tsx')

diff --git a/components/file-manager/SecurePDFViewer.tsx b/components/file-manager/SecurePDFViewer.tsx
index cd7c081a..707d95dc 100644
--- a/components/file-manager/SecurePDFViewer.tsx
+++ b/components/file-manager/SecurePDFViewer.tsx
@@ -5,6 +5,7 @@ import { useSession } from 'next-auth/react';
 import { WebViewerInstance } from '@pdftron/webviewer';
 import { Loader2 } from 'lucide-react';
 import { toast } from 'sonner';
+import { createCustomWatermark } from './creaetWaterMarks';
 
 interface SecurePDFViewerProps {
   documentUrl: string;
@@ -194,14 +195,16 @@ export function SecurePDFViewer({ documentUrl, fileName, onClose }: SecurePDFVie
         const watermarkText = `${session?.user?.email || 'CONFIDENTIAL'}\n${new Date().toLocaleString()}`;
         
         // 대각선 워터마크
-        documentViewer.setWatermark({
+        documentViewer.setWatermark(
+          {custom:createCustomWatermark({
           text: watermarkText,
           fontSize: 30,
           fontFamily: 'Arial',
           color: 'rgba(255, 0, 0, 0.3)',
           opacity: 30,
-          diagonal: true,
-        });
+          // diagonal: true,
+        })}
+      );
 
         // 각 페이지에 커스텀 워터마크 추가
         const pageCount = documentViewer.getPageCount();
-- 
cgit v1.2.3

