浏览代码

pdf清晰度调整

jwyu 5 月之前
父节点
当前提交
aac0e57c28
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/PreviewPDF.vue

+ 1 - 1
src/components/PreviewPDF.vue

@@ -42,7 +42,7 @@ async function loadPage(pageNum) {
     loadingPages.value.push(pageNum)
     try {
       const page = await pdfDoc.getPage(pageNum);
-      const viewport = page.getViewport({ scale: 1 });
+      const viewport = page.getViewport({ scale: 4 });
       const canvas = document.getElementById(`pdfCanvas${pageNum-1}`)
       const context = canvas.getContext("2d");