@yudaocode/univer-pdfs 1.6.214 → 1.6.215

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.
@@ -24,7 +24,7 @@ import {
24
24
  exportJsxToPdfBytes,
25
25
  renderJsxToPdfUnit,
26
26
  renderJsxToPdfmeTemplate
27
- } from "../chunk-4A226M74.js";
27
+ } from "../chunk-DYTQBEM7.js";
28
28
  import {
29
29
  Fragment,
30
30
  PDF_JSX_ELEMENT_SYMBOL,
@@ -1,5 +1,5 @@
1
- import { I as IPdfUnitData, a as IPdfDocument, b as IPdfPage, c as IPdfPageSize, d as IPdfPageElement, e as IPdfLayer, f as IPdfSourceDocumentRef, g as IPdfResourceBinding, h as IPdfUnitMetadata, i as IPdfAttachment, j as IPdfSecurityPermissions, k as IPdfSignatureEnvelope, P as PdfElementType, l as IPdfTextStyle, m as PdfPageRotation, n as IPdfBatesConfig, o as IPdfBookmarkItem, p as IPdfHeaderFooterConfig, q as IPdfNativeTextSpan, r as IPdfCropBox, s as IPdfWatermarkConfig, t as IPdfDocumentData, u as IPdfTextElement, v as PdfDateTimeKind, w as IPdfCircleMarkElement, x as IPdfListElement, y as IPdfRichTextSpan, z as PdfColorSpaceType, A as IPdfExportOptions, B as PDF_PAGE_PRESETS, C as PdfBatesPosition, D as IPdfSignerInfo, E as IPdfjsAssetsConfig, F as PdfDisplayUnit, G as PdfInteractionMode, H as IPdfVersionSnapshot } from './jsx-dev-runtime-Ch1WuW58.js';
2
- export { J as Fragment, K as ICjkDetectionSummary, L as IComputeDynamicFontSizeParams, M as IDetectedPaperPreset, N as IDiagnosePdfFontsOptions, O as IDiagnosticGridOverlayOptions, Q as IExportJsxToPdfOptions, R as IInputsCjkReport, S as IJsxAbsoluteProps, T as IJsxBarcodeProps, U as IJsxBoxProps, V as IJsxContainerStyleProps, W as IJsxDocumentProps, X as IJsxHeaderFooterProps, Y as IJsxImageProps, Z as IJsxLineProps, _ as IJsxListProps, $ as IJsxMultiVariableTextProps, a0 as IJsxPageBreakProps, a1 as IJsxPageProps, a2 as IJsxQrCodeProps, a3 as IJsxRowProps, a4 as IJsxShapeProps, a5 as IJsxSpacerProps, a6 as IJsxStackProps, a7 as IJsxStaticProps, a8 as IJsxSvgProps, a9 as IJsxTableColumnSpec, aa as IJsxTableProps, ab as IJsxTextProps, ac as IPdfAnnotationElement, ad as IPdfAnnotationReply, ae as IPdfBarcodeElement, af as IPdfBrowserRenderOptions, ag as IPdfCheckboxElement, ah as IPdfDatasetField, ai as IPdfDatasetSchema, aj as IPdfDateTimeElement, ak as IPdfDocumentMetadata, al as IPdfDurableEditState, am as IPdfDynamicFontSizeConfig, an as IPdfElement, ao as IPdfElementBase, ap as IPdfElementTransform, aq as IPdfEllipseElement, ar as IPdfExportCapabilitiesReport, as as IPdfFailedFontEntry, at as IPdfFieldContractHint, au as IPdfFontDiagnosisReport, av as IPdfFontDiagnosticIssue, aw as IPdfFontDoctorInputEntry, ax as IPdfFontSource, ay as IPdfImageCrop, az as IPdfImageElement, aA as IPdfInkElement, aB as IPdfInkPoint, aC as IPdfInputContractValidationResult, aD as IPdfInputContractViolation, aE as IPdfJsxNode, aF as IPdfLineElement, aG as IPdfMissingGlyphItem, aH as IPdfPageElementBase, aI as IPdfParagraphBlock, aJ as IPdfPolygonElement, aK as IPdfPolygonPoint, aL as IPdfQrCodeElement, aM as IPdfRadioGroupElement, aN as IPdfRedactionElement, aO as IPdfRenderWarning, aP as IPdfSchemaDiagnosticIssue, aQ as IPdfSelectElement, aR as IPdfShapeElement, aS as IPdfSignatureElement, aT as IPdfStampElement, aU as IPdfSvgElement, aV as IPdfTableBorderWidths, aW as IPdfTableCellStyle, aX as IPdfTableColumn, aY as IPdfTableElement, aZ as IPdfTableMerge, a_ as IPdfTablePageChunk, a$ as IPdfTablePaginationOptions, b0 as IPdfTableRowCapacity, b1 as IPdfTableThemePreset, b2 as IPdfTemplateSchemaValidationResult, b3 as IPdfVariableValidationResult, b4 as IPdfmeBlankPdf, b5 as IPdfmeSchemaItem, b6 as IPdfmeTemplate, b7 as IRenderJsxOptions, b8 as ISubsetFontResult, b9 as ITemplateCjkReport, ba as ITrueTypeFontInspection, bb as IValidatePdfTemplateSchemaOptions, bc as JSX, bd as PAGE_SIZE_PRESETS_MM, be as PDF_JSX_ELEMENT_SYMBOL, bf as PDF_JSX_FRAGMENT_SYMBOL, bg as PDF_TABLE_THEME_PRESETS, bh as PT_PER_MM, bi as PdfAnnotationStatus, bj as PdfAnnotationType, bk as PdfBarcodeFormat, bl as PdfCjkScriptBlock, bm as PdfCjkTextMode, bn as PdfDynamicFontFitMode, bo as PdfFontFallbackPolicy, bp as PdfImageSourceType, bq as PdfJsxChild, br as PdfJsxComponent, bs as PdfJsxIntrinsicKind, bt as PdfJsxPaddingSpec, bu as PdfListKind, bv as PdfListPresetId, bw as PdfMissingGlyphPolicy, bx as PdfPaperPresetName, by as PdfRenderError, bz as PdfTableBorderStyle, bA as PdfTableCellVerticalAlign, bB as PdfTablePaginationMode, bC as PdfTextAnchor, bD as PdfTextFormatMode, bE as PdfTextOverflowMode, bF as PdfZebraParityMode, bG as UNIVER_PDF_SCHEMA, bH as UNIVER_PDF_SCHEMA_VERSION, bI as buildMinimalTestTrueTypeFont, bJ as calculatePdfTableRowCapacity, bK as clearPdfFontUrlCache, bL as collectMissingGlyphsFromPdfUnit, bM as collectPdfInputContractHints, bN as collectUsedCodePointsFromPdfUnit, bO as computeAutoFitFontSize, bP as computeDynamicFontSize, bQ as computePdfTableSummaryRow, bR as createPdfJsxNode, bS as detectCJKCharacters, bT as detectCJKInPdfInputs, bU as detectCJKInPdfTemplate, bV as detectPaperSizePreset, bW as diagnosePdfFonts, bX as evaluatePdfJsxElement, bY as exportBatchPdfBytes, bZ as exportCalibrationGridPdfBytes, b_ as exportPdfBytes, b$ as exportToPdfmeTemplate, c0 as extractAcroFormValuesFromPdfBytes, c1 as extractJsxTextContent, c2 as extractPdfFormValues, c3 as fillPdfFormValues, c4 as flattenJsxChildrenToNodes, c5 as formatBatesNumber, c6 as formatPdfTableCell, c7 as fromPdfmeTemplate, c8 as getTrueTypeMappedCodePoints, c9 as importFromPdfmeTemplate, ca as inspectPdfExportCapabilities, cb as inspectTrueTypeFont, cc as isFontUrlSafeToFetch, cd as isPdfJsxNode, ce as jsx, cf as jsxDEV, cg as jsxs, ch as mmToPt, ci as normalizeBarcodePayloadForFormat, cj as normalizeImageCrop, ck as overlayDiagnosticGridOnPdfBytes, cl as paginatePdfTableRows, cm as ptToMm, cn as renderBarcodeDataUrl, co as renderQrCodeDataUrl, cp as resolveDynamicTableRawRows, cq as resolvePaddingMm, cr as resolvePageSizeMm, cs as resolvePolygonNormalizedPoints, ct as resolveTemplateString, cu as subsetTrueTypeFont, cv as toPdfmeTemplate, cw as validatePdfInputContract, cx as validatePdfTemplateSchema, cy as validatePdfTemplateVariables, cz as wrapMixedCjkAndLatinLines } from './jsx-dev-runtime-Ch1WuW58.js';
1
+ import { I as IPdfUnitData, a as IPdfDocument, b as IPdfPage, c as IPdfPageSize, d as IPdfPageElement, e as IPdfLayer, f as IPdfSourceDocumentRef, g as IPdfResourceBinding, h as IPdfUnitMetadata, i as IPdfAttachment, j as IPdfSecurityPermissions, k as IPdfSignatureEnvelope, P as PdfElementType, l as IPdfTextStyle, m as PdfPageRotation, n as IPdfBatesConfig, o as IPdfBookmarkItem, p as IPdfHeaderFooterConfig, q as IPdfNativeTextSpan, r as IPdfCropBox, s as IPdfWatermarkConfig, t as IPdfDocumentData, u as IPdfTextElement, v as PdfDateTimeKind, w as IPdfCircleMarkElement, x as IPdfListElement, y as IPdfRichTextSpan, z as PdfColorSpaceType, A as IPdfExportOptions, B as PDF_PAGE_PRESETS, C as PdfBatesPosition, D as IPdfSignerInfo, E as IPdfjsAssetsConfig, F as PdfDisplayUnit, G as PdfInteractionMode, H as IPdfVersionSnapshot } from './jsx-dev-runtime-BFeiWVJj.js';
2
+ export { J as DEFAULT_PDF_CJK_FONT_FAMILY, K as DEFAULT_PDF_CJK_FONT_FILES, L as DEFAULT_PDF_CJK_FONT_PACKAGE, M as DEFAULT_PDF_CJK_FONT_VERSION, N as Fragment, O as ICjkDetectionSummary, Q as IComputeDynamicFontSizeParams, R as IDetectedPaperPreset, S as IDiagnosePdfFontsOptions, T as IDiagnosticGridOverlayOptions, U as IExportJsxToPdfOptions, V as IInputsCjkReport, W as IJsxAbsoluteProps, X as IJsxBarcodeProps, Y as IJsxBoxProps, Z as IJsxContainerStyleProps, _ as IJsxDocumentProps, $ as IJsxHeaderFooterProps, a0 as IJsxImageProps, a1 as IJsxLineProps, a2 as IJsxListProps, a3 as IJsxMultiVariableTextProps, a4 as IJsxPageBreakProps, a5 as IJsxPageProps, a6 as IJsxQrCodeProps, a7 as IJsxRowProps, a8 as IJsxShapeProps, a9 as IJsxSpacerProps, aa as IJsxStackProps, ab as IJsxStaticProps, ac as IJsxSvgProps, ad as IJsxTableColumnSpec, ae as IJsxTableProps, af as IJsxTextProps, ag as IPdfAnnotationElement, ah as IPdfAnnotationReply, ai as IPdfBarcodeElement, aj as IPdfBrowserRenderOptions, ak as IPdfCheckboxElement, al as IPdfCjkFontSourcesOptions, am as IPdfDatasetField, an as IPdfDatasetSchema, ao as IPdfDateTimeElement, ap as IPdfDocumentMetadata, aq as IPdfDurableEditState, ar as IPdfDynamicFontSizeConfig, as as IPdfElement, at as IPdfElementBase, au as IPdfElementTransform, av as IPdfEllipseElement, aw as IPdfExportCapabilitiesReport, ax as IPdfFailedFontEntry, ay as IPdfFieldContractHint, az as IPdfFontDiagnosisReport, aA as IPdfFontDiagnosticIssue, aB as IPdfFontDoctorInputEntry, aC as IPdfFontSource, aD as IPdfImageCrop, aE as IPdfImageElement, aF as IPdfInkElement, aG as IPdfInkPoint, aH as IPdfInputContractValidationResult, aI as IPdfInputContractViolation, aJ as IPdfJsxNode, aK as IPdfLineElement, aL as IPdfMissingGlyphItem, aM as IPdfPageElementBase, aN as IPdfParagraphBlock, aO as IPdfPolygonElement, aP as IPdfPolygonPoint, aQ as IPdfQrCodeElement, aR as IPdfRadioGroupElement, aS as IPdfRedactionElement, aT as IPdfRenderWarning, aU as IPdfSchemaDiagnosticIssue, aV as IPdfSelectElement, aW as IPdfShapeElement, aX as IPdfSignatureElement, aY as IPdfStampElement, aZ as IPdfSvgElement, a_ as IPdfTableBorderWidths, a$ as IPdfTableCellStyle, b0 as IPdfTableColumn, b1 as IPdfTableElement, b2 as IPdfTableMerge, b3 as IPdfTablePageChunk, b4 as IPdfTablePaginationOptions, b5 as IPdfTableRowCapacity, b6 as IPdfTableThemePreset, b7 as IPdfTemplateSchemaValidationResult, b8 as IPdfVariableValidationResult, b9 as IPdfmeBlankPdf, ba as IPdfmeSchemaItem, bb as IPdfmeTemplate, bc as IRenderJsxOptions, bd as ISubsetFontResult, be as ITemplateCjkReport, bf as ITrueTypeFontInspection, bg as IValidatePdfTemplateSchemaOptions, bh as JSX, bi as PAGE_SIZE_PRESETS_MM, bj as PDF_JSX_ELEMENT_SYMBOL, bk as PDF_JSX_FRAGMENT_SYMBOL, bl as PDF_TABLE_THEME_PRESETS, bm as PT_PER_MM, bn as PdfAnnotationStatus, bo as PdfAnnotationType, bp as PdfBarcodeFormat, bq as PdfCjkScriptBlock, br as PdfCjkTextMode, bs as PdfDynamicFontFitMode, bt as PdfFontFallbackPolicy, bu as PdfImageSourceType, bv as PdfJsxChild, bw as PdfJsxComponent, bx as PdfJsxIntrinsicKind, by as PdfJsxPaddingSpec, bz as PdfListKind, bA as PdfListPresetId, bB as PdfMissingGlyphPolicy, bC as PdfPaperPresetName, bD as PdfRenderError, bE as PdfTableBorderStyle, bF as PdfTableCellVerticalAlign, bG as PdfTablePaginationMode, bH as PdfTextAnchor, bI as PdfTextFormatMode, bJ as PdfTextOverflowMode, bK as PdfZebraParityMode, bL as UNIVER_PDF_SCHEMA, bM as UNIVER_PDF_SCHEMA_VERSION, bN as buildMinimalTestTrueTypeFont, bO as calculatePdfTableRowCapacity, bP as clearPdfFontUrlCache, bQ as collectMissingGlyphsFromPdfUnit, bR as collectPdfInputContractHints, bS as collectUsedCodePointsFromPdfUnit, bT as computeAutoFitFontSize, bU as computeDynamicFontSize, bV as computePdfTableSummaryRow, bW as createPdfCjkFontSources, bX as createPdfJsxNode, bY as detectCJKCharacters, bZ as detectCJKInPdfInputs, b_ as detectCJKInPdfTemplate, b$ as detectPaperSizePreset, c0 as diagnosePdfFonts, c1 as evaluatePdfJsxElement, c2 as exportBatchPdfBytes, c3 as exportCalibrationGridPdfBytes, c4 as exportPdfBytes, c5 as exportToPdfmeTemplate, c6 as extractAcroFormValuesFromPdfBytes, c7 as extractJsxTextContent, c8 as extractPdfFormValues, c9 as fillPdfFormValues, ca as flattenJsxChildrenToNodes, cb as formatBatesNumber, cc as formatPdfTableCell, cd as fromPdfmeTemplate, ce as getTrueTypeMappedCodePoints, cf as importFromPdfmeTemplate, cg as inspectPdfExportCapabilities, ch as inspectTrueTypeFont, ci as isFontUrlSafeToFetch, cj as isPdfJsxNode, ck as jsx, cl as jsxDEV, cm as jsxs, cn as mmToPt, co as normalizeBarcodePayloadForFormat, cp as normalizeImageCrop, cq as overlayDiagnosticGridOnPdfBytes, cr as paginatePdfTableRows, cs as ptToMm, ct as renderBarcodeDataUrl, cu as renderQrCodeDataUrl, cv as resolveDynamicTableRawRows, cw as resolvePaddingMm, cx as resolvePageSizeMm, cy as resolvePolygonNormalizedPoints, cz as resolveTemplateString, cA as subsetTrueTypeFont, cB as toPdfmeTemplate, cC as validatePdfInputContract, cD as validatePdfTemplateSchema, cE as validatePdfTemplateVariables, cF as wrapMixedCjkAndLatinLines } from './jsx-dev-runtime-BFeiWVJj.js';
3
3
  import * as _univerjs_core from '@univerjs/core';
4
4
  import { UnitModel, UniverInstanceType, ICommand, IMutation, IDisposable, Disposable, IUniverInstanceService, Plugin, Injector, ICommandService } from '@univerjs/core';
5
5
  import { Observable } from 'rxjs';
@@ -1,5 +1,5 @@
1
- import { S as IJsxAbsoluteProps, aE as IPdfJsxNode, T as IJsxBarcodeProps, U as IJsxBoxProps, W as IJsxDocumentProps, a4 as IJsxShapeProps, X as IJsxHeaderFooterProps, Y as IJsxImageProps, Z as IJsxLineProps, _ as IJsxListProps, $ as IJsxMultiVariableTextProps, a1 as IJsxPageProps, a0 as IJsxPageBreakProps, a2 as IJsxQrCodeProps, a3 as IJsxRowProps, a5 as IJsxSpacerProps, a6 as IJsxStackProps, a7 as IJsxStaticProps, a8 as IJsxSvgProps, aa as IJsxTableProps, ab as IJsxTextProps, br as PdfJsxComponent, Q as IExportJsxToPdfOptions, b7 as IRenderJsxOptions, I as IPdfUnitData, b6 as IPdfmeTemplate } from '../jsx-dev-runtime-Ch1WuW58.js';
2
- export { J as Fragment, V as IJsxContainerStyleProps, a9 as IJsxTableColumnSpec, bc as JSX, be as PDF_JSX_ELEMENT_SYMBOL, bf as PDF_JSX_FRAGMENT_SYMBOL, bq as PdfJsxChild, bs as PdfJsxIntrinsicKind, bt as PdfJsxPaddingSpec, bR as createPdfJsxNode, bX as evaluatePdfJsxElement, c1 as extractJsxTextContent, c4 as flattenJsxChildrenToNodes, cd as isPdfJsxNode, ce as jsx, cf as jsxDEV, cg as jsxs, cq as resolvePaddingMm } from '../jsx-dev-runtime-Ch1WuW58.js';
1
+ import { W as IJsxAbsoluteProps, aJ as IPdfJsxNode, X as IJsxBarcodeProps, Y as IJsxBoxProps, _ as IJsxDocumentProps, a8 as IJsxShapeProps, $ as IJsxHeaderFooterProps, a0 as IJsxImageProps, a1 as IJsxLineProps, a2 as IJsxListProps, a3 as IJsxMultiVariableTextProps, a5 as IJsxPageProps, a4 as IJsxPageBreakProps, a6 as IJsxQrCodeProps, a7 as IJsxRowProps, a9 as IJsxSpacerProps, aa as IJsxStackProps, ab as IJsxStaticProps, ac as IJsxSvgProps, ae as IJsxTableProps, af as IJsxTextProps, bw as PdfJsxComponent, U as IExportJsxToPdfOptions, bc as IRenderJsxOptions, I as IPdfUnitData, bb as IPdfmeTemplate } from '../jsx-dev-runtime-BFeiWVJj.js';
2
+ export { N as Fragment, Z as IJsxContainerStyleProps, ad as IJsxTableColumnSpec, bh as JSX, bj as PDF_JSX_ELEMENT_SYMBOL, bk as PDF_JSX_FRAGMENT_SYMBOL, bv as PdfJsxChild, bx as PdfJsxIntrinsicKind, by as PdfJsxPaddingSpec, bX as createPdfJsxNode, c1 as evaluatePdfJsxElement, c7 as extractJsxTextContent, ca as flattenJsxChildrenToNodes, cj as isPdfJsxNode, ck as jsx, cl as jsxDEV, cm as jsxs, cw as resolvePaddingMm } from '../jsx-dev-runtime-BFeiWVJj.js';
3
3
  import '@univerjs/core';
4
4
 
5
5
  declare function Document(props?: IJsxDocumentProps): IPdfJsxNode<IJsxDocumentProps>;
@@ -1,2 +1,2 @@
1
- export { J as Fragment, bc as JSX, ce as jsx, cf as jsxDEV, cg as jsxs } from '../jsx-dev-runtime-Ch1WuW58.js';
1
+ export { N as Fragment, bh as JSX, ck as jsx, cl as jsxDEV, cm as jsxs } from '../jsx-dev-runtime-BFeiWVJj.js';
2
2
  import '@univerjs/core';
@@ -1,2 +1,2 @@
1
- export { J as Fragment, bc as JSX, ce as jsx, cf as jsxDEV, cg as jsxs } from '../jsx-dev-runtime-Ch1WuW58.js';
1
+ export { N as Fragment, bh as JSX, ck as jsx, cl as jsxDEV, cm as jsxs } from '../jsx-dev-runtime-BFeiWVJj.js';
2
2
  import '@univerjs/core';
@@ -1130,8 +1130,8 @@ interface IPdfBrowserRenderOptions {
1130
1130
  fallback?: PdfFontFallbackPolicy;
1131
1131
  /**
1132
1132
  * Action when embedded subset TrueType font lacks glyphs present in the document:
1133
- * - `'warn'` (default): emit `MISSING_GLYPH` warning with `pageId`, `elementId`, `chars`, `codePoints`
1134
- * - `'error'`: throw `PdfRenderError('MISSING_GLYPH', ...)`
1133
+ * - `'error'` (default when `fonts` is explicitly provided): throw `PdfRenderError('MISSING_GLYPH', ...)`
1134
+ * - `'warn'` (default when `fonts` is omitted): emit `MISSING_GLYPH` warning with `pageId`, `elementId`, `chars`, `codePoints`
1135
1135
  */
1136
1136
  missingGlyph?: PdfMissingGlyphPolicy;
1137
1137
  /** Structured diagnostic warning callback */
@@ -1145,6 +1145,54 @@ interface IPdfBrowserRenderOptions {
1145
1145
  /** Optional deterministic creation/modification timestamp for reproducible byte output */
1146
1146
  creationDate?: Date | string;
1147
1147
  }
1148
+ declare const DEFAULT_PDF_CJK_FONT_PACKAGE = "@yudaocode/univer-pdf-fonts";
1149
+ declare const DEFAULT_PDF_CJK_FONT_VERSION = "1.0.0";
1150
+ declare const DEFAULT_PDF_CJK_FONT_FAMILY = "Noto Sans SC";
1151
+ declare const DEFAULT_PDF_CJK_FONT_FILES: Readonly<{
1152
+ normal: Readonly<{
1153
+ file: "NotoSansSC-Regular.ttf";
1154
+ family: "Noto Sans SC";
1155
+ weight: "normal";
1156
+ integrity: "sha384-WYgE+CQjxrXCFCynsUOYE86llni41IspZsiH2huo8yxlgR2GKNE5fzeurmHXRfIe";
1157
+ }>;
1158
+ bold: Readonly<{
1159
+ file: "NotoSansSC-Bold.ttf";
1160
+ family: "Noto Sans SC";
1161
+ weight: "bold";
1162
+ integrity: "sha384-jI+dGvcJGGgO8RayO+x2LHDI85inVoe36tfbBKtSD6SQ0A8VKi5s+0lG+of4qB6j";
1163
+ }>;
1164
+ }>;
1165
+ interface IPdfCjkFontSourcesOptions {
1166
+ /** Fixed version of `@yudaocode/univer-pdf-fonts` when using the default CDN path (default `'1.0.0'`) */
1167
+ version?: string;
1168
+ /**
1169
+ * Custom base URL directory containing `NotoSansSC-Regular.ttf` / `NotoSansSC-Bold.ttf`
1170
+ * (defaults to `'https://cdn.jsdmirror.com/npm/@yudaocode/univer-pdf-fonts@${version}/fonts'`).
1171
+ */
1172
+ baseUrl?: string;
1173
+ /**
1174
+ * Font weights to generate `IPdfFontSource` entries for:
1175
+ * - `'normal'` / `['normal']` (default: Regular only)
1176
+ * - `'bold'` / `['bold']` (Bold only)
1177
+ * - `'both'` / `['normal', 'bold']` (both Regular and Bold)
1178
+ */
1179
+ weights?: Array<'normal' | 'bold'> | 'normal' | 'bold' | 'both';
1180
+ /** Font family label recorded on each `IPdfFontSource` (default `'Noto Sans SC'`) */
1181
+ family?: string;
1182
+ /**
1183
+ * Subresource integrity behavior:
1184
+ * - `true` (default when `version` matches `'1.0.0'`): attaches built-in `sha384` hashes
1185
+ * - `false`: omits `integrity`
1186
+ * - `{ normal?: string; bold?: string }`: attaches custom integrity hashes per weight
1187
+ */
1188
+ integrity?: boolean | Partial<Record<'normal' | 'bold', string>>;
1189
+ }
1190
+ /**
1191
+ * Pure helper generating standard `render.fonts` (`IPdfFontSource[]`) entries for the standalone
1192
+ * open-licensed `@yudaocode/univer-pdf-fonts` package (or a host-overridden `baseUrl`).
1193
+ * Performs zero network I/O until passed to `exportPdfBytes` / `encodePdf` / `mountPdf`.
1194
+ */
1195
+ declare function createPdfCjkFontSources(options?: IPdfCjkFontSourcesOptions): IPdfFontSource[];
1148
1196
  declare function clearPdfFontUrlCache(): void;
1149
1197
  interface IDiagnosticGridOverlayOptions {
1150
1198
  /** Minor grid step in millimeters (default `5`) */
@@ -1669,4 +1717,4 @@ declare namespace JSX {
1669
1717
  }
1670
1718
  }
1671
1719
 
1672
- export { type IJsxMultiVariableTextProps as $, type IPdfExportOptions as A, PDF_PAGE_PRESETS as B, type PdfBatesPosition as C, type IPdfSignerInfo as D, type IPdfjsAssetsConfig as E, type PdfDisplayUnit as F, type PdfInteractionMode as G, type IPdfVersionSnapshot as H, type IPdfUnitData as I, Fragment as J, type ICjkDetectionSummary as K, type IComputeDynamicFontSizeParams as L, type IDetectedPaperPreset as M, type IDiagnosePdfFontsOptions as N, type IDiagnosticGridOverlayOptions as O, PdfElementType as P, type IExportJsxToPdfOptions as Q, type IInputsCjkReport as R, type IJsxAbsoluteProps as S, type IJsxBarcodeProps as T, type IJsxBoxProps as U, type IJsxContainerStyleProps as V, type IJsxDocumentProps as W, type IJsxHeaderFooterProps as X, type IJsxImageProps as Y, type IJsxLineProps as Z, type IJsxListProps as _, type IPdfDocument as a, type IPdfTablePaginationOptions as a$, type IJsxPageBreakProps as a0, type IJsxPageProps as a1, type IJsxQrCodeProps as a2, type IJsxRowProps as a3, type IJsxShapeProps as a4, type IJsxSpacerProps as a5, type IJsxStackProps as a6, type IJsxStaticProps as a7, type IJsxSvgProps as a8, type IJsxTableColumnSpec as a9, type IPdfInkElement as aA, type IPdfInkPoint as aB, type IPdfInputContractValidationResult as aC, type IPdfInputContractViolation as aD, type IPdfJsxNode as aE, type IPdfLineElement as aF, type IPdfMissingGlyphItem as aG, type IPdfPageElementBase as aH, type IPdfParagraphBlock as aI, type IPdfPolygonElement as aJ, type IPdfPolygonPoint as aK, type IPdfQrCodeElement as aL, type IPdfRadioGroupElement as aM, type IPdfRedactionElement as aN, type IPdfRenderWarning as aO, type IPdfSchemaDiagnosticIssue as aP, type IPdfSelectElement as aQ, type IPdfShapeElement as aR, type IPdfSignatureElement as aS, type IPdfStampElement as aT, type IPdfSvgElement as aU, type IPdfTableBorderWidths as aV, type IPdfTableCellStyle as aW, type IPdfTableColumn as aX, type IPdfTableElement as aY, type IPdfTableMerge as aZ, type IPdfTablePageChunk as a_, type IJsxTableProps as aa, type IJsxTextProps as ab, type IPdfAnnotationElement as ac, type IPdfAnnotationReply as ad, type IPdfBarcodeElement as ae, type IPdfBrowserRenderOptions as af, type IPdfCheckboxElement as ag, type IPdfDatasetField as ah, type IPdfDatasetSchema as ai, type IPdfDateTimeElement as aj, type IPdfDocumentMetadata as ak, type IPdfDurableEditState as al, type IPdfDynamicFontSizeConfig as am, type IPdfElement as an, type IPdfElementBase as ao, type IPdfElementTransform as ap, type IPdfEllipseElement as aq, type IPdfExportCapabilitiesReport as ar, type IPdfFailedFontEntry as as, type IPdfFieldContractHint as at, type IPdfFontDiagnosisReport as au, type IPdfFontDiagnosticIssue as av, type IPdfFontDoctorInputEntry as aw, type IPdfFontSource as ax, type IPdfImageCrop as ay, type IPdfImageElement as az, type IPdfPage as b, exportToPdfmeTemplate as b$, type IPdfTableRowCapacity as b0, type IPdfTableThemePreset as b1, type IPdfTemplateSchemaValidationResult as b2, type IPdfVariableValidationResult as b3, type IPdfmeBlankPdf as b4, type IPdfmeSchemaItem as b5, type IPdfmeTemplate as b6, type IRenderJsxOptions as b7, type ISubsetFontResult as b8, type ITemplateCjkReport as b9, PdfTableCellVerticalAlign as bA, type PdfTablePaginationMode as bB, PdfTextAnchor as bC, type PdfTextFormatMode as bD, type PdfTextOverflowMode as bE, type PdfZebraParityMode as bF, UNIVER_PDF_SCHEMA as bG, UNIVER_PDF_SCHEMA_VERSION as bH, buildMinimalTestTrueTypeFont as bI, calculatePdfTableRowCapacity as bJ, clearPdfFontUrlCache as bK, collectMissingGlyphsFromPdfUnit as bL, collectPdfInputContractHints as bM, collectUsedCodePointsFromPdfUnit as bN, computeAutoFitFontSize as bO, computeDynamicFontSize as bP, computePdfTableSummaryRow as bQ, createPdfJsxNode as bR, detectCJKCharacters as bS, detectCJKInPdfInputs as bT, detectCJKInPdfTemplate as bU, detectPaperSizePreset as bV, diagnosePdfFonts as bW, evaluatePdfJsxElement as bX, exportBatchPdfBytes as bY, exportCalibrationGridPdfBytes as bZ, exportPdfBytes as b_, type ITrueTypeFontInspection as ba, type IValidatePdfTemplateSchemaOptions as bb, JSX as bc, PAGE_SIZE_PRESETS_MM as bd, PDF_JSX_ELEMENT_SYMBOL as be, PDF_JSX_FRAGMENT_SYMBOL as bf, PDF_TABLE_THEME_PRESETS as bg, PT_PER_MM as bh, type PdfAnnotationStatus as bi, PdfAnnotationType as bj, type PdfBarcodeFormat as bk, type PdfCjkScriptBlock as bl, type PdfCjkTextMode as bm, type PdfDynamicFontFitMode as bn, type PdfFontFallbackPolicy as bo, PdfImageSourceType as bp, type PdfJsxChild as bq, type PdfJsxComponent as br, type PdfJsxIntrinsicKind as bs, type PdfJsxPaddingSpec as bt, PdfListKind as bu, PdfListPresetId as bv, type PdfMissingGlyphPolicy as bw, type PdfPaperPresetName as bx, PdfRenderError as by, PdfTableBorderStyle as bz, type IPdfPageSize as c, extractAcroFormValuesFromPdfBytes as c0, extractJsxTextContent as c1, extractPdfFormValues as c2, fillPdfFormValues as c3, flattenJsxChildrenToNodes as c4, formatBatesNumber as c5, formatPdfTableCell as c6, fromPdfmeTemplate as c7, getTrueTypeMappedCodePoints as c8, importFromPdfmeTemplate as c9, inspectPdfExportCapabilities as ca, inspectTrueTypeFont as cb, isFontUrlSafeToFetch as cc, isPdfJsxNode as cd, jsx as ce, jsxDEV as cf, jsxs as cg, mmToPt as ch, normalizeBarcodePayloadForFormat as ci, normalizeImageCrop as cj, overlayDiagnosticGridOnPdfBytes as ck, paginatePdfTableRows as cl, ptToMm as cm, renderBarcodeDataUrl as cn, renderQrCodeDataUrl as co, resolveDynamicTableRawRows as cp, resolvePaddingMm as cq, resolvePageSizeMm as cr, resolvePolygonNormalizedPoints as cs, resolveTemplateString as ct, subsetTrueTypeFont as cu, toPdfmeTemplate as cv, validatePdfInputContract as cw, validatePdfTemplateSchema as cx, validatePdfTemplateVariables as cy, wrapMixedCjkAndLatinLines as cz, type IPdfPageElement as d, type IPdfLayer as e, type IPdfSourceDocumentRef as f, type IPdfResourceBinding as g, type IPdfUnitMetadata as h, type IPdfAttachment as i, type IPdfSecurityPermissions as j, type IPdfSignatureEnvelope as k, type IPdfTextStyle as l, type PdfPageRotation as m, type IPdfBatesConfig as n, type IPdfBookmarkItem as o, type IPdfHeaderFooterConfig as p, type IPdfNativeTextSpan as q, type IPdfCropBox as r, type IPdfWatermarkConfig as s, type IPdfDocumentData as t, type IPdfTextElement as u, type PdfDateTimeKind as v, type IPdfCircleMarkElement as w, type IPdfListElement as x, type IPdfRichTextSpan as y, type PdfColorSpaceType as z };
1720
+ export { type IJsxHeaderFooterProps as $, type IPdfExportOptions as A, PDF_PAGE_PRESETS as B, type PdfBatesPosition as C, type IPdfSignerInfo as D, type IPdfjsAssetsConfig as E, type PdfDisplayUnit as F, type PdfInteractionMode as G, type IPdfVersionSnapshot as H, type IPdfUnitData as I, DEFAULT_PDF_CJK_FONT_FAMILY as J, DEFAULT_PDF_CJK_FONT_FILES as K, DEFAULT_PDF_CJK_FONT_PACKAGE as L, DEFAULT_PDF_CJK_FONT_VERSION as M, Fragment as N, type ICjkDetectionSummary as O, PdfElementType as P, type IComputeDynamicFontSizeParams as Q, type IDetectedPaperPreset as R, type IDiagnosePdfFontsOptions as S, type IDiagnosticGridOverlayOptions as T, type IExportJsxToPdfOptions as U, type IInputsCjkReport as V, type IJsxAbsoluteProps as W, type IJsxBarcodeProps as X, type IJsxBoxProps as Y, type IJsxContainerStyleProps as Z, type IJsxDocumentProps as _, type IPdfDocument as a, type IPdfTableCellStyle as a$, type IJsxImageProps as a0, type IJsxLineProps as a1, type IJsxListProps as a2, type IJsxMultiVariableTextProps as a3, type IJsxPageBreakProps as a4, type IJsxPageProps as a5, type IJsxQrCodeProps as a6, type IJsxRowProps as a7, type IJsxShapeProps as a8, type IJsxSpacerProps as a9, type IPdfFontDiagnosticIssue as aA, type IPdfFontDoctorInputEntry as aB, type IPdfFontSource as aC, type IPdfImageCrop as aD, type IPdfImageElement as aE, type IPdfInkElement as aF, type IPdfInkPoint as aG, type IPdfInputContractValidationResult as aH, type IPdfInputContractViolation as aI, type IPdfJsxNode as aJ, type IPdfLineElement as aK, type IPdfMissingGlyphItem as aL, type IPdfPageElementBase as aM, type IPdfParagraphBlock as aN, type IPdfPolygonElement as aO, type IPdfPolygonPoint as aP, type IPdfQrCodeElement as aQ, type IPdfRadioGroupElement as aR, type IPdfRedactionElement as aS, type IPdfRenderWarning as aT, type IPdfSchemaDiagnosticIssue as aU, type IPdfSelectElement as aV, type IPdfShapeElement as aW, type IPdfSignatureElement as aX, type IPdfStampElement as aY, type IPdfSvgElement as aZ, type IPdfTableBorderWidths as a_, type IJsxStackProps as aa, type IJsxStaticProps as ab, type IJsxSvgProps as ac, type IJsxTableColumnSpec as ad, type IJsxTableProps as ae, type IJsxTextProps as af, type IPdfAnnotationElement as ag, type IPdfAnnotationReply as ah, type IPdfBarcodeElement as ai, type IPdfBrowserRenderOptions as aj, type IPdfCheckboxElement as ak, type IPdfCjkFontSourcesOptions as al, type IPdfDatasetField as am, type IPdfDatasetSchema as an, type IPdfDateTimeElement as ao, type IPdfDocumentMetadata as ap, type IPdfDurableEditState as aq, type IPdfDynamicFontSizeConfig as ar, type IPdfElement as as, type IPdfElementBase as at, type IPdfElementTransform as au, type IPdfEllipseElement as av, type IPdfExportCapabilitiesReport as aw, type IPdfFailedFontEntry as ax, type IPdfFieldContractHint as ay, type IPdfFontDiagnosisReport as az, type IPdfPage as b, detectPaperSizePreset as b$, type IPdfTableColumn as b0, type IPdfTableElement as b1, type IPdfTableMerge as b2, type IPdfTablePageChunk as b3, type IPdfTablePaginationOptions as b4, type IPdfTableRowCapacity as b5, type IPdfTableThemePreset as b6, type IPdfTemplateSchemaValidationResult as b7, type IPdfVariableValidationResult as b8, type IPdfmeBlankPdf as b9, PdfListPresetId as bA, type PdfMissingGlyphPolicy as bB, type PdfPaperPresetName as bC, PdfRenderError as bD, PdfTableBorderStyle as bE, PdfTableCellVerticalAlign as bF, type PdfTablePaginationMode as bG, PdfTextAnchor as bH, type PdfTextFormatMode as bI, type PdfTextOverflowMode as bJ, type PdfZebraParityMode as bK, UNIVER_PDF_SCHEMA as bL, UNIVER_PDF_SCHEMA_VERSION as bM, buildMinimalTestTrueTypeFont as bN, calculatePdfTableRowCapacity as bO, clearPdfFontUrlCache as bP, collectMissingGlyphsFromPdfUnit as bQ, collectPdfInputContractHints as bR, collectUsedCodePointsFromPdfUnit as bS, computeAutoFitFontSize as bT, computeDynamicFontSize as bU, computePdfTableSummaryRow as bV, createPdfCjkFontSources as bW, createPdfJsxNode as bX, detectCJKCharacters as bY, detectCJKInPdfInputs as bZ, detectCJKInPdfTemplate as b_, type IPdfmeSchemaItem as ba, type IPdfmeTemplate as bb, type IRenderJsxOptions as bc, type ISubsetFontResult as bd, type ITemplateCjkReport as be, type ITrueTypeFontInspection as bf, type IValidatePdfTemplateSchemaOptions as bg, JSX as bh, PAGE_SIZE_PRESETS_MM as bi, PDF_JSX_ELEMENT_SYMBOL as bj, PDF_JSX_FRAGMENT_SYMBOL as bk, PDF_TABLE_THEME_PRESETS as bl, PT_PER_MM as bm, type PdfAnnotationStatus as bn, PdfAnnotationType as bo, type PdfBarcodeFormat as bp, type PdfCjkScriptBlock as bq, type PdfCjkTextMode as br, type PdfDynamicFontFitMode as bs, type PdfFontFallbackPolicy as bt, PdfImageSourceType as bu, type PdfJsxChild as bv, type PdfJsxComponent as bw, type PdfJsxIntrinsicKind as bx, type PdfJsxPaddingSpec as by, PdfListKind as bz, type IPdfPageSize as c, diagnosePdfFonts as c0, evaluatePdfJsxElement as c1, exportBatchPdfBytes as c2, exportCalibrationGridPdfBytes as c3, exportPdfBytes as c4, exportToPdfmeTemplate as c5, extractAcroFormValuesFromPdfBytes as c6, extractJsxTextContent as c7, extractPdfFormValues as c8, fillPdfFormValues as c9, subsetTrueTypeFont as cA, toPdfmeTemplate as cB, validatePdfInputContract as cC, validatePdfTemplateSchema as cD, validatePdfTemplateVariables as cE, wrapMixedCjkAndLatinLines as cF, flattenJsxChildrenToNodes as ca, formatBatesNumber as cb, formatPdfTableCell as cc, fromPdfmeTemplate as cd, getTrueTypeMappedCodePoints as ce, importFromPdfmeTemplate as cf, inspectPdfExportCapabilities as cg, inspectTrueTypeFont as ch, isFontUrlSafeToFetch as ci, isPdfJsxNode as cj, jsx as ck, jsxDEV as cl, jsxs as cm, mmToPt as cn, normalizeBarcodePayloadForFormat as co, normalizeImageCrop as cp, overlayDiagnosticGridOnPdfBytes as cq, paginatePdfTableRows as cr, ptToMm as cs, renderBarcodeDataUrl as ct, renderQrCodeDataUrl as cu, resolveDynamicTableRawRows as cv, resolvePaddingMm as cw, resolvePageSizeMm as cx, resolvePolygonNormalizedPoints as cy, resolveTemplateString as cz, type IPdfPageElement as d, type IPdfLayer as e, type IPdfSourceDocumentRef as f, type IPdfResourceBinding as g, type IPdfUnitMetadata as h, type IPdfAttachment as i, type IPdfSecurityPermissions as j, type IPdfSignatureEnvelope as k, type IPdfTextStyle as l, type PdfPageRotation as m, type IPdfBatesConfig as n, type IPdfBookmarkItem as o, type IPdfHeaderFooterConfig as p, type IPdfNativeTextSpan as q, type IPdfCropBox as r, type IPdfWatermarkConfig as s, type IPdfDocumentData as t, type IPdfTextElement as u, type PdfDateTimeKind as v, type IPdfCircleMarkElement as w, type IPdfListElement as x, type IPdfRichTextSpan as y, type PdfColorSpaceType as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yudaocode/univer-pdfs",
3
- "version": "1.6.214",
3
+ "version": "1.6.215",
4
4
  "description": "Univer PDFs core unit model, commands, PDF exporter, JSX layout DSL, and template adapter",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/yudaocode/yudao-univer#readme",