toHex polyfill
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
import * as pdfjsLib from 'pdfjs-dist/legacy/build/pdf.mjs';
|
||||
import pdfjsWorker from 'pdfjs-dist/legacy/build/pdf.worker.mjs?worker&url';
|
||||
|
||||
// pdf.js worker setup for Vite
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(pdfjsLib as any).GlobalWorkerOptions.workerSrc = pdfjsWorker;
|
||||
import { pdfjsLib } from './pdfJs';
|
||||
|
||||
type RotationsMap = Record<number, number>; // key: 0-based page index, value: degrees
|
||||
|
||||
|
||||
Reference in New Issue
Block a user