Browse Source

pdf清晰度调整

jwyu 5 months ago
parent
commit
aac0e57c28
1 changed files with 1 additions and 1 deletions
  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");