summaryrefslogtreecommitdiff
path: root/components/file-manager/SecurePDFViewer.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/file-manager/SecurePDFViewer.tsx')
-rw-r--r--components/file-manager/SecurePDFViewer.tsx9
1 files changed, 6 insertions, 3 deletions
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();