@yudaocode/univer-pdfs 1.6.204 → 1.6.206
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +12 -3
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/jsx/index.js.map +1 -1
- package/lib/es/{chunk-7J2ODILT.js → chunk-72OJSR4Z.js} +5 -2
- package/lib/es/chunk-72OJSR4Z.js.map +1 -0
- package/lib/es/index.js +9 -3
- package/lib/es/index.js.map +1 -1
- package/lib/es/jsx/index.js +1 -1
- package/package.json +1 -1
- package/lib/es/chunk-7J2ODILT.js.map +0 -1
|
@@ -5576,10 +5576,13 @@ async function tryExtractViaPdfjsFallback(pdfBytes, pageIds) {
|
|
|
5576
5576
|
}
|
|
5577
5577
|
if (!pdfjsLib || typeof pdfjsLib.getDocument !== "function") return null;
|
|
5578
5578
|
try {
|
|
5579
|
+
const globalAssets = globalThis?.__YUDAO_UNIVER_PDFJS_ASSETS__;
|
|
5579
5580
|
const loadingTask = pdfjsLib.getDocument({
|
|
5580
5581
|
data: pdfBytes.slice(),
|
|
5581
5582
|
disableWorker: true,
|
|
5582
|
-
isEvalSupported: false
|
|
5583
|
+
isEvalSupported: false,
|
|
5584
|
+
...globalAssets?.cMapUrl ? { cMapUrl: globalAssets.cMapUrl, cMapPacked: globalAssets.cMapPacked ?? true } : {},
|
|
5585
|
+
...globalAssets?.standardFontDataUrl ? { standardFontDataUrl: globalAssets.standardFontDataUrl } : {}
|
|
5583
5586
|
});
|
|
5584
5587
|
const pdfDoc = await loadingTask.promise;
|
|
5585
5588
|
const out = {};
|
|
@@ -15329,4 +15332,4 @@ export {
|
|
|
15329
15332
|
renderJsxToPdfmeTemplate,
|
|
15330
15333
|
exportJsxToPdfBytes
|
|
15331
15334
|
};
|
|
15332
|
-
//# sourceMappingURL=chunk-
|
|
15335
|
+
//# sourceMappingURL=chunk-72OJSR4Z.js.map
|