pdfjs禁止复制、水印加深

This commit is contained in:
zyn
2023-07-26 09:28:41 +08:00
parent 89e0a3ec8e
commit e8b566ed1f
2 changed files with 10 additions and 2 deletions
+9 -1
View File
@@ -36,7 +36,15 @@ See https://github.com/adobe-type-tools/cmap-resources
<script src="viewer.js"></script>
</head>
<body tabindex="1">
<body tabindex="1"
leftmargin="0"
οncοntextmenu="return false"
οndragstart="return false"
onselectstart="return false"
οnselect="document.selection.empty()"
οncοpy="document.selection.empty()"
onbeforecopy="return false"
οnmοuseup="document.selection.empty()">
<div id="outerContainer">
<div id="sidebarContainer">
+1 -1
View File
@@ -10639,7 +10639,7 @@ class PDFPageView {
watermark_x_space: 40,//水印x轴间隔
watermark_y_space: 50,//水印y轴间隔
watermark_color: 'rgba(232,232,240)',//水印字体颜色
watermark_alpha: 0.4,//水印透明度
watermark_alpha: 0.6,//水印透明度
watermark_fontsize: '40px',//水印字体大小
watermark_font: '微软雅黑',//水印字体
watermark_width: 120,//水印宽度