We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d890e6c commit a196a61Copy full SHA for a196a61
src/app/upload/page.tsx
@@ -22,7 +22,7 @@ import {
22
import { createCanvas } from "canvas";
23
import { getDocument, GlobalWorkerOptions } from "pdfjs-dist";
24
import { PDFDocument } from "pdf-lib";
25
-export async function pdfToImage(file: File) {
+ async function pdfToImage(file: File) {
26
GlobalWorkerOptions.workerSrc = 'https://unpkg.com/[email protected]/build/pdf.worker.min.js'
27
28
const pdfDoc = await PDFDocument.load(await file.arrayBuffer());
0 commit comments