jwyu 5 mesiacov pred
rodič
commit
aac0e57c28
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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");