@yudaocode/univer-pdfs 1.6.204 → 1.6.205

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.
@@ -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-7J2ODILT.js.map
15335
+ //# sourceMappingURL=chunk-72OJSR4Z.js.map