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.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/file-manager/SecurePDFViewer.tsx b/components/file-manager/SecurePDFViewer.tsx
index 704c4f24..0deb96b6 100644
--- a/components/file-manager/SecurePDFViewer.tsx
+++ b/components/file-manager/SecurePDFViewer.tsx
@@ -91,10 +91,6 @@ export function SecurePDFViewer({ documentUrl, fileName, category, onClose }: Se
'ribbons',
'toggleNotesButton'
]);
-
- const { Core } = instance;
- Core.Tools.Tool.disableAutoSwitch();
- Core.Tools.Tool.disableTextSelection();
// CSS 적용으로 추가 보안
const iframeWindow = instance.UI.iframeWindow;
@@ -241,6 +237,10 @@ export function SecurePDFViewer({ documentUrl, fileName, category, onClose }: Se
}
annotationManager.drawAnnotations(documentViewer.getCurrentPage());
+
+ const { Core } = instance;
+ Core.Tools.Tool.disableAutoSwitch();
+ Core.Tools.Tool.disableTextSelection();
}
// Pan 모드로 설정 (텍스트 선택 불가)