fix(pdf): use minified version of pdf
This commit is contained in:
parent
b20ffe6e87
commit
a3effd878b
@ -3,7 +3,7 @@ import { PDFDocument } from 'pdf-lib'
|
|||||||
import { Mark } from '../types/mark.ts'
|
import { Mark } from '../types/mark.ts'
|
||||||
|
|
||||||
import * as PDFJS from 'pdfjs-dist'
|
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) {
|
if (!PDFJS.GlobalWorkerOptions.workerPort) {
|
||||||
// Use workerPort and allow worker to be shared between all getDocument calls
|
// Use workerPort and allow worker to be shared between all getDocument calls
|
||||||
const worker = new PDFJSWorker()
|
const worker = new PDFJSWorker()
|
||||||
|
Loading…
Reference in New Issue
Block a user