fix(pdf): use minified version of pdf

This commit is contained in:
enes 2024-09-03 16:46:54 +02:00
parent b20ffe6e87
commit a3effd878b

View File

@ -3,7 +3,7 @@ import { PDFDocument } from 'pdf-lib'
import { Mark } from '../types/mark.ts'
import * as PDFJS from 'pdfjs-dist'
import PDFJSWorker from 'pdfjs-dist/build/pdf.worker.mjs?worker'
import PDFJSWorker from 'pdfjs-dist/build/pdf.worker.min.mjs?worker'
if (!PDFJS.GlobalWorkerOptions.workerPort) {
// Use workerPort and allow worker to be shared between all getDocument calls
const worker = new PDFJSWorker()