Skip to content

Commit a196a61

Browse files
removed export on pdfToImage function
1 parent d890e6c commit a196a61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/upload/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
import { createCanvas } from "canvas";
2323
import { getDocument, GlobalWorkerOptions } from "pdfjs-dist";
2424
import { PDFDocument } from "pdf-lib";
25-
export async function pdfToImage(file: File) {
25+
async function pdfToImage(file: File) {
2626
GlobalWorkerOptions.workerSrc = 'https://unpkg.com/[email protected]/build/pdf.worker.min.js'
2727

2828
const pdfDoc = await PDFDocument.load(await file.arrayBuffer());

0 commit comments

Comments
 (0)