@yudaocode/univer-pdfs 1.6.211 → 1.6.213

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-72OJSR4Z.js";
27
+ } from "../chunk-4A226M74.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-5tXCUq4v.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 IPdfCheckboxElement, ag as IPdfDatasetField, ah as IPdfDatasetSchema, ai as IPdfDateTimeElement, aj as IPdfDocumentMetadata, ak as IPdfDurableEditState, al as IPdfDynamicFontSizeConfig, am as IPdfElement, an as IPdfElementBase, ao as IPdfElementTransform, ap as IPdfEllipseElement, aq as IPdfExportCapabilitiesReport, ar as IPdfFieldContractHint, as as IPdfFontDiagnosisReport, at as IPdfFontDiagnosticIssue, au as IPdfFontDoctorInputEntry, av as IPdfImageCrop, aw as IPdfImageElement, ax as IPdfInkElement, ay as IPdfInkPoint, az as IPdfInputContractValidationResult, aA as IPdfInputContractViolation, aB as IPdfJsxNode, aC as IPdfLineElement, aD as IPdfPageElementBase, aE as IPdfParagraphBlock, aF as IPdfPolygonElement, aG as IPdfPolygonPoint, aH as IPdfQrCodeElement, aI as IPdfRadioGroupElement, aJ as IPdfRedactionElement, aK as IPdfSchemaDiagnosticIssue, aL as IPdfSelectElement, aM as IPdfShapeElement, aN as IPdfSignatureElement, aO as IPdfStampElement, aP as IPdfSvgElement, aQ as IPdfTableBorderWidths, aR as IPdfTableCellStyle, aS as IPdfTableColumn, aT as IPdfTableElement, aU as IPdfTableMerge, aV as IPdfTablePageChunk, aW as IPdfTableThemePreset, aX as IPdfTemplateSchemaValidationResult, aY as IPdfVariableValidationResult, aZ as IPdfmeBlankPdf, a_ as IPdfmeSchemaItem, a$ as IPdfmeTemplate, b0 as IRenderJsxOptions, b1 as ITemplateCjkReport, b2 as IValidatePdfTemplateSchemaOptions, b3 as JSX, b4 as PAGE_SIZE_PRESETS_MM, b5 as PDF_JSX_ELEMENT_SYMBOL, b6 as PDF_JSX_FRAGMENT_SYMBOL, b7 as PDF_TABLE_THEME_PRESETS, b8 as PT_PER_MM, b9 as PdfAnnotationStatus, ba as PdfAnnotationType, bb as PdfBarcodeFormat, bc as PdfCjkScriptBlock, bd as PdfCjkTextMode, be as PdfDynamicFontFitMode, bf as PdfImageSourceType, bg as PdfJsxChild, bh as PdfJsxComponent, bi as PdfJsxIntrinsicKind, bj as PdfJsxPaddingSpec, bk as PdfListKind, bl as PdfListPresetId, bm as PdfPaperPresetName, bn as PdfTableBorderStyle, bo as PdfTableCellVerticalAlign, bp as PdfTextAnchor, bq as PdfTextFormatMode, br as PdfTextOverflowMode, bs as UNIVER_PDF_SCHEMA, bt as UNIVER_PDF_SCHEMA_VERSION, bu as collectPdfInputContractHints, bv as computeAutoFitFontSize, bw as computeDynamicFontSize, bx as computePdfTableSummaryRow, by as createPdfJsxNode, bz as detectCJKCharacters, bA as detectCJKInPdfInputs, bB as detectCJKInPdfTemplate, bC as detectPaperSizePreset, bD as diagnosePdfFonts, bE as evaluatePdfJsxElement, bF as exportBatchPdfBytes, bG as exportCalibrationGridPdfBytes, bH as exportPdfBytes, bI as exportToPdfmeTemplate, bJ as extractAcroFormValuesFromPdfBytes, bK as extractJsxTextContent, bL as extractPdfFormValues, bM as fillPdfFormValues, bN as flattenJsxChildrenToNodes, bO as formatBatesNumber, bP as formatPdfTableCell, bQ as fromPdfmeTemplate, bR as importFromPdfmeTemplate, bS as inspectPdfExportCapabilities, bT as isFontUrlSafeToFetch, bU as isPdfJsxNode, bV as jsx, bW as jsxDEV, bX as jsxs, bY as mmToPt, bZ as normalizeBarcodePayloadForFormat, b_ as normalizeImageCrop, b$ as overlayDiagnosticGridOnPdfBytes, c0 as paginatePdfTableRows, c1 as ptToMm, c2 as renderBarcodeDataUrl, c3 as renderQrCodeDataUrl, c4 as resolveDynamicTableRawRows, c5 as resolvePaddingMm, c6 as resolvePageSizeMm, c7 as resolvePolygonNormalizedPoints, c8 as resolveTemplateString, c9 as toPdfmeTemplate, ca as validatePdfInputContract, cb as validatePdfTemplateSchema, cc as validatePdfTemplateVariables } from './jsx-dev-runtime-5tXCUq4v.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-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';
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';
@@ -1559,57 +1559,27 @@ declare function convertMarkdownToPdfUnit(markdown: string, options?: IConvertMa
1559
1559
  */
1560
1560
  declare function convertMarkdownToPdfBytes(markdown: string, options?: IConvertMarkdownToPdfOptions): Promise<Uint8Array>;
1561
1561
 
1562
- interface ITrueTypeFontInspection {
1563
- sfntVersion: number;
1564
- tables: string[];
1565
- numGlyphs: number;
1566
- unitsPerEm: number;
1567
- ascent: number;
1568
- descent: number;
1569
- lineGap: number;
1570
- indexToLocFormat: 0 | 1;
1571
- bbox: [number, number, number, number];
1572
- mappedCodePointCount: number;
1573
- }
1574
- interface ISubsetFontResult {
1575
- subsetBytes: Uint8Array;
1576
- originalByteLength: number;
1577
- subsetByteLength: number;
1578
- glyphCount: number;
1579
- codePointToGid: Record<number, number>;
1580
- gidAdvanceWidths: number[];
1581
- unitsPerEm: number;
1582
- ascent: number;
1583
- descent: number;
1584
- bbox: [number, number, number, number];
1585
- }
1586
- /**
1587
- * Scans an `IPdfUnitData` snapshot (plus optional dynamic runtime data) and returns
1588
- * sorted unique Unicode code points used across text boxes, lists, table headers/cells,
1589
- * form controls, stamps, barcodes, and watermarks.
1590
- */
1591
- declare function collectUsedCodePointsFromPdfUnit(unitData: IPdfUnitData, data?: Record<string, unknown>): number[];
1592
- /**
1593
- * Inspects a TrueType (`sfnt`) font binary and returns structural metrics and glyph counts.
1594
- */
1595
- declare function inspectTrueTypeFont(ttfBytes: Uint8Array): ITrueTypeFontInspection;
1596
- /**
1597
- * Returns the set of Unicode code points mapped to non-zero glyph IDs in a TrueType (`sfnt`) font's `cmap` table.
1598
- */
1599
- declare function getTrueTypeMappedCodePoints(ttfBytes: Uint8Array): Set<number>;
1600
- /**
1601
- * Pure-TS TrueType (`TTF`) Font Subsetter:
1602
- * Extracts `.notdef` (GID 0), all requested Unicode `codePoints`, and recursive composite glyph
1603
- * dependencies (`numberOfContours < 0`), rebuilding compact `glyf`, `loca`, `hmtx`, `hhea`,
1604
- * `maxp`, `head`, `cmap`, `post`, `name`, and `OS/2` tables into a valid subset TTF `Uint8Array`.
1605
- */
1606
- declare function subsetTrueTypeFont(ttfBytes: Uint8Array, codePoints: number[]): ISubsetFontResult;
1607
- /**
1608
- * Deterministically builds a valid, self-contained TrueType (`sfnt` `0x00010000`) font fixture
1609
- * containing `.notdef`, printable ASCII (`0x20..0x7E`), CJK ideographs (200+ glyphs by default),
1610
- * and a composite glyph (`U+2605` `'★'`) for clean-room unit testing without external binary files.
1611
- */
1612
- declare function buildMinimalTestTrueTypeFont(extraCodePoints?: number[]): Uint8Array;
1562
+ interface IPdfBrowserFidelitySampleSet {
1563
+ /** S1: CJK short text, Western labels, fullwidth punctuation, mixed CJK/Latin */
1564
+ s1ShortCjk: IPdfUnitData;
1565
+ /** S2: Long CJK + Western word text boxes across left/center/right & top/middle/bottom + shrink */
1566
+ s2LongTextBox: IPdfUnitData;
1567
+ /** S3: Single-page 5-column (1:2:1:1:1) table with number/currency/percent, zebra stripes, custom header/body styles */
1568
+ s3SinglePageTable: IPdfUnitData;
1569
+ /** S4: Narrow-column cell overflow (long CJK, overlong English word, multi-line text) for T4/T5 clipping & T6 shrink */
1570
+ s4CellOverflow: IPdfUnitData;
1571
+ /** S5: Multi-page table (2.5x single-page row capacity = 35 rows) with elements above & below */
1572
+ s5MultiPageTable: IPdfUnitData;
1573
+ /** S6: Missing glyphs ('龘' U+9F98 & '🚀' U+1F680) for F3-F5 error/warning diagnostics */
1574
+ s6MissingGlyphs: IPdfUnitData;
1575
+ /** S7: Same content as S1 rendered with no font supplied (preserves default 'raster-hd') */
1576
+ s7DefaultNoFont: IPdfUnitData;
1577
+ }
1578
+ /**
1579
+ * Creates the 7 canonical host-neutral filled `IPdfUnitData` samples (`S1`–`S7`)
1580
+ * for verifying browser PDF preview & export fidelity without external dataset binding.
1581
+ */
1582
+ declare function createPdfBrowserFidelitySamples(): IPdfBrowserFidelitySampleSet;
1613
1583
 
1614
1584
  interface IPdfImportWarning {
1615
1585
  code: string;
@@ -2092,4 +2062,4 @@ declare class PdfSelectionService extends Disposable implements IPdfSelectionSer
2092
2062
  getVersionSnapshot(unitId: string, versionId: string): IPdfVersionSnapshot | null;
2093
2063
  }
2094
2064
 
2095
- export { ASPECT_RATIO_LOCKED_BARCODE_TYPES, AddPdfElementCommand, AddPdfElementMutation, AddPdfLayerCommand, AddPdfPageCommand, AddPdfPageMutation, AlignSelectedPdfElementsCommand, type AspectRatioLockedBarcodeType, AssignPdfElementLayerCommand, BARCODE_TYPES, CIRCLE_MARK_BEZIER_KAPPA, DeleteSelectedPdfElementsCommand, DistributeSelectedPdfElementsCommand, DuplicateSelectedPdfElementsCommand, FindAndReplacePdfTextCommand, type IAddPdfElementCommandParams, type IAddPdfLayerCommandParams, type IAssignPdfElementLayerCommandParams, type IBarcodeBarRun, type IBarcodeLayoutBox, type IBeforePdfExportHookParams, type IBeforePdfPrintHookParams, type ICircleMarkBezierEllipse, type IComputeSmartSnapParams, type IConvertImagesToPdfOptions, type IConvertMarkdownToPdfOptions, type IDataMatrixEncodedResult, type IDeleteSelectedPdfElementsCommandParams, type IDistributeSelectedPdfElementsCommandParams, type IDynamicLayoutItemInput, type IDynamicLayoutPlacement, type IDynamicLayoutSplitOptions, type IDynamicLayoutSplitRange, type IFindAndReplacePdfTextCommandParams, type IGs1128EncodedResult, type IGs1DataMatrixEncodedResult, type IHttpSilentPrintAdapterConfig, type IImageFitPlacement, type IImportPdfSourceCommandParams, type IJapanPostBar, type IJapanPostEncodedResult, type ILinear1dEncodedResult, type INw7EncodedResult, type IParsedPdfColor, type IParsedStreamTextOp, type IPdf417EncodedResult, type IPdfAiCopilotAdapter, IPdfAttachment, type IPdfAuditSealOptions, type IPdfAuditVerificationResult, type IPdfBatchAction, type IPdfBatchPipelineFileInput, type IPdfBatchPipelineItemResult, IPdfBatesConfig, IPdfBookmarkItem, IPdfCircleMarkElement, type IPdfComparisonResult, IPdfCropBox, IPdfDocument, IPdfDocumentData, type IPdfDocxDocumentSnapshot, type IPdfElementDiffItem, type IPdfExportContext, IPdfExportOptions, type IPdfExportedHookParams, type IPdfFormFieldIssue, type IPdfFormValidationResult, IPdfHeaderFooterConfig, type IPdfImportContext, type IPdfImportOutcome, type IPdfImportOutcomeReport, type IPdfImportSourceOptions, type IPdfImportSourceResult, type IPdfImportWarning, type IPdfImportWithReportContext, type IPdfInspectedPageSize, type IPdfIoAdapter, type IPdfIoAdapterImportResult, type IPdfIoCapabilities, type IPdfIoFormatCapability, type IPdfIoFormatListConfig, IPdfIoService, IPdfLayer, IPdfListElement, type IPdfListPageChunk, IPdfNativeTextSpan, type IPdfOcrAdapter, type IPdfOcrFieldInput, type IPdfOcrPageInfo, type IPdfOcrRecognizedBlock, type IPdfOptimizeUnitOptions, type IPdfOrganizeAction, IPdfPage, IPdfPageElement, IPdfPageSize, type IPdfRenderedPageImage, IPdfResourceBinding, IPdfRichTextSpan, type IPdfSanitizeOptions, type IPdfSaveContext, IPdfSecurityPermissions, IPdfSelectionService, type IPdfSelectionState, type IPdfSheetConvertedStructure, type IPdfSheetConvertedTable, IPdfSignatureEnvelope, type IPdfSignedAuditResult, IPdfSignerInfo, IPdfSourceDocumentRef, type IPdfTextDiffItem, IPdfTextElement, IPdfTextStyle, IPdfUnitData, IPdfUnitMetadata, type IPdfUnitPropsPatch, type IPdfUnitSignatureVerificationResult, IPdfVersionSnapshot, type IPdfViewportRatio, IPdfWatermarkConfig, type IPdfWordBlock, type IPdfWordConvertedPage, type IPdfWordConvertedStructure, type IPdfWorkbookCell, type IPdfWorkbookSnapshot, IPdfjsAssetsConfig, type IRemovePdfLayerCommandParams, type IRenderPdfBytesToImagesOptions, type IReplacePdfNativeTextCommandParams, type IRotatePdfPageCommandParams, type ISetPdfAttachmentsCommandParams, type ISetPdfBatesConfigCommandParams, type ISetPdfBookmarksCommandParams, type ISetPdfHeaderFooterConfigCommandParams, type ISetPdfNativeTextSpansCommandParams, type ISetPdfPageCropBoxCommandParams, type ISetPdfWatermarkConfigCommandParams, type ISilentPrintOptions, type ISilentPrintResult, type ISmartSnapBox, type ISnapGuideLine, type ISubsetFontResult, type ITemplateVariableMatch, type ITrueTypeFontInspection, type IUnifiedBarcodeEncoded, type IUniverPdfsConfig, type IUpdatePdfElementsCommandParams, type IUpdatePdfLayerCommandParams, type IUpdatePdfPageMutationParams, type IUpdatePdfPagePropsCommandParams, type IUpdatePdfUnitPropsCommandParams, type IUpdatePdfUnitPropsMutationParams, ImportPdfSourceCommand, type JapanPostBarState, PDF_DIFF_COLORS, PDF_PAGE_PRESETS, type PdfAlignMode, PdfBatesPosition, type PdfCanonicalBarcodeType, PdfColorSpaceType, type PdfConvertibleImageInput, PdfDateTimeKind, PdfDisplayUnit, type PdfDistributeDirection, PdfElementType, type PdfExifMatrixTuple, type PdfExifOrientation, PdfImportError, type PdfImportErrorCode, PdfInteractionMode, PdfIoService, type PdfIoTarget, PdfIoTargetError, type PdfLayerOrderMode, PdfPageRotation, type PdfRawImportWarning, PdfSelectionService, PdfUnitModel, RemovePdfElementsMutation, RemovePdfLayerCommand, RemovePdfPageCommand, RemovePdfPageMutation, ReorderPdfElementOrderMutation, ReorderPdfLayerCommand, ReorderPdfPagesCommand, ReorderPdfPagesMutation, ReplacePdfNativeTextCommand, ReplacePdfSnapshotCommand, RestorePdfVersionCommand, RotatePdfPageCommand, SavePdfVersionCommand, SetPdfAttachmentsCommand, SetPdfBatesConfigCommand, SetPdfBookmarksCommand, SetPdfHeaderFooterConfigCommand, SetPdfNativeTextSpansCommand, SetPdfPageCropBoxCommand, SetPdfPageSizeCommand, SetPdfWatermarkConfigCommand, type SignatureQuadraticSegment, type SilentPrintDriverType, type SvgMat2D, UNIVER_PDFS_PLUGIN_NAME, UniverPdfsPlugin, UpdatePdfElementsCommand, UpdatePdfElementsMutation, UpdatePdfLayerCommand, UpdatePdfPageMutation, UpdatePdfPagePropsCommand, UpdatePdfUnitPropsCommand, UpdatePdfUnitPropsMutation, applyOcrToUnitPage, autoDetectFormFieldsOnPage, buildMinimalTestTrueTypeFont, buildOverlayImportCandidateSnapshot, buildPdfTemplateFromOcrFields, canonicalJsonStringify, cmykToRgb, collectUsedCodePointsFromPdfUnit, comparePdfBytes, comparePdfUnits, computeBarcodeLayoutBox, computeCircleMarkBezierEllipse, computeDynamicLayoutSplitRanges, computeElementCenterTransformMatrix, computeExifTransformMatrix, computeExpandedTextHeightMm, computeExpandedTextHeightPt, computeImageFitPlacement, computePasteCascadeOffset, computePdfPayloadDigest, computeSmartSnapWithEqualGap, convertImagesToPdfBytes, convertMarkdownToPdfBytes, convertMarkdownToPdfUnit, convertPdfBytesToCsv, convertPdfBytesToDocxBytes, convertPdfToSheetStructure, convertPdfToWordStructure, convertPdfUnitToCsv, createDefaultElement, createDefaultPdfUnitData, createHttpSilentPrintAdapter, detectFormFieldsFromPageSpans, drawVectorSvgOnPdfPage, encodeBarcodeByFormat, encodeCodabar, encodeCode128, encodeCode39, encodeDataMatrix, encodeEan13, encodeEan8, encodeGs1128, encodeGs1DataMatrix, encodeItf14, encodeJapanPost, encodeNw7, encodePdf417, encodeQrCodeMatrix, encodeUpcA, encodeUpcE, evaluatePdfFormExpression, evaluateSafeTemplateExpression, exportFormDataToFdf, exportFormDataToXfdf, exportPdfToDocxSnapshot, exportPdfToWorkbookSnapshot, exportSignedPdfWithAuditSeal, extractAttachmentsFromPdfBytes, extractNativeTextSpansFromPdfBytes, formatGs1HumanReadable, formatPdfDateTimeValue, generatePdfTemplateByPrompt, getDefaultDateTimeFormat, getRegisteredOcrAdapter, getTrueTypeMappedCodePoints, importAcroFormPdfToUnit, importFormDataFromFdf, importFormDataFromXfdf, importPdfSource, insertPdfPagesBytes, inspectPdfBytePageSizes, inspectTrueTypeFont, isAspectRatioLockedBarcodeType, isCircleMarkChecked, isExifDimensionsSwapped, mayBeJson, mergePdfBytes, movePdfPageBytes, normalizeBarcodeFormatType, normalizePdfImportWarnings, optimizePdfUnit, organizePdfBytes, paginatePdfListItems, parseGs1ApplicationIdentifiers, parseInlineMarkdownToSpans, parseObjectPositionRatios, parsePdfColorWithAlpha, parsePdfContentStreamTextOps, parsePdfPageRange, parseSafeKeyValueRecord, parseSvgToVectorCommands, parseSvgTransformAttr, readJpegExifOrientation, recalculatePdfFormFields, rectsIntersect, registerOcrAdapter, removePdfPagesBytes, renderBarcodeSvgByFormat, renderBarcodeSvgDataUrlByFormat, renderDataMatrixSvg, renderDataMatrixSvgDataUrl, renderGs1128Svg, renderGs1128SvgDataUrl, renderGs1DataMatrixSvg, renderGs1DataMatrixSvgDataUrl, renderPdf417Svg, renderPdf417SvgDataUrl, renderPdfBytesToImages, resolveMultiVariableText, rgbToCmyk, rotatePdfPagesBytes, runPdfBatchPipeline, safeLookupVariablePath, sanitizePdfUnit, scanTemplateExpressionTokens, sha256BytesSync, sha256Hex, sha256HexSync, signPdfUnitWithDigest, exportSignedPdfWithAuditSeal as signPdfWithAuditDigest, smoothSignatureStrokeQuadratic, splitPdfBytes, stripPdfPageNativeTextInRects, subsetTrueTypeFont, svgToDataUri, toHtmlDateTimeInputValue, toPdfLibColor, toggleCircleMarkState, validatePdfFormFields, verifyPdfAuditSeal as verifyPdfAuditDigest, verifyPdfAuditSeal, verifyPdfUnitSignature, visitTemplateVariables, wrapPdfTextLines };
2065
+ export { ASPECT_RATIO_LOCKED_BARCODE_TYPES, AddPdfElementCommand, AddPdfElementMutation, AddPdfLayerCommand, AddPdfPageCommand, AddPdfPageMutation, AlignSelectedPdfElementsCommand, type AspectRatioLockedBarcodeType, AssignPdfElementLayerCommand, BARCODE_TYPES, CIRCLE_MARK_BEZIER_KAPPA, DeleteSelectedPdfElementsCommand, DistributeSelectedPdfElementsCommand, DuplicateSelectedPdfElementsCommand, FindAndReplacePdfTextCommand, type IAddPdfElementCommandParams, type IAddPdfLayerCommandParams, type IAssignPdfElementLayerCommandParams, type IBarcodeBarRun, type IBarcodeLayoutBox, type IBeforePdfExportHookParams, type IBeforePdfPrintHookParams, type ICircleMarkBezierEllipse, type IComputeSmartSnapParams, type IConvertImagesToPdfOptions, type IConvertMarkdownToPdfOptions, type IDataMatrixEncodedResult, type IDeleteSelectedPdfElementsCommandParams, type IDistributeSelectedPdfElementsCommandParams, type IDynamicLayoutItemInput, type IDynamicLayoutPlacement, type IDynamicLayoutSplitOptions, type IDynamicLayoutSplitRange, type IFindAndReplacePdfTextCommandParams, type IGs1128EncodedResult, type IGs1DataMatrixEncodedResult, type IHttpSilentPrintAdapterConfig, type IImageFitPlacement, type IImportPdfSourceCommandParams, type IJapanPostBar, type IJapanPostEncodedResult, type ILinear1dEncodedResult, type INw7EncodedResult, type IParsedPdfColor, type IParsedStreamTextOp, type IPdf417EncodedResult, type IPdfAiCopilotAdapter, IPdfAttachment, type IPdfAuditSealOptions, type IPdfAuditVerificationResult, type IPdfBatchAction, type IPdfBatchPipelineFileInput, type IPdfBatchPipelineItemResult, IPdfBatesConfig, IPdfBookmarkItem, type IPdfBrowserFidelitySampleSet, IPdfCircleMarkElement, type IPdfComparisonResult, IPdfCropBox, IPdfDocument, IPdfDocumentData, type IPdfDocxDocumentSnapshot, type IPdfElementDiffItem, type IPdfExportContext, IPdfExportOptions, type IPdfExportedHookParams, type IPdfFormFieldIssue, type IPdfFormValidationResult, IPdfHeaderFooterConfig, type IPdfImportContext, type IPdfImportOutcome, type IPdfImportOutcomeReport, type IPdfImportSourceOptions, type IPdfImportSourceResult, type IPdfImportWarning, type IPdfImportWithReportContext, type IPdfInspectedPageSize, type IPdfIoAdapter, type IPdfIoAdapterImportResult, type IPdfIoCapabilities, type IPdfIoFormatCapability, type IPdfIoFormatListConfig, IPdfIoService, IPdfLayer, IPdfListElement, type IPdfListPageChunk, IPdfNativeTextSpan, type IPdfOcrAdapter, type IPdfOcrFieldInput, type IPdfOcrPageInfo, type IPdfOcrRecognizedBlock, type IPdfOptimizeUnitOptions, type IPdfOrganizeAction, IPdfPage, IPdfPageElement, IPdfPageSize, type IPdfRenderedPageImage, IPdfResourceBinding, IPdfRichTextSpan, type IPdfSanitizeOptions, type IPdfSaveContext, IPdfSecurityPermissions, IPdfSelectionService, type IPdfSelectionState, type IPdfSheetConvertedStructure, type IPdfSheetConvertedTable, IPdfSignatureEnvelope, type IPdfSignedAuditResult, IPdfSignerInfo, IPdfSourceDocumentRef, type IPdfTextDiffItem, IPdfTextElement, IPdfTextStyle, IPdfUnitData, IPdfUnitMetadata, type IPdfUnitPropsPatch, type IPdfUnitSignatureVerificationResult, IPdfVersionSnapshot, type IPdfViewportRatio, IPdfWatermarkConfig, type IPdfWordBlock, type IPdfWordConvertedPage, type IPdfWordConvertedStructure, type IPdfWorkbookCell, type IPdfWorkbookSnapshot, IPdfjsAssetsConfig, type IRemovePdfLayerCommandParams, type IRenderPdfBytesToImagesOptions, type IReplacePdfNativeTextCommandParams, type IRotatePdfPageCommandParams, type ISetPdfAttachmentsCommandParams, type ISetPdfBatesConfigCommandParams, type ISetPdfBookmarksCommandParams, type ISetPdfHeaderFooterConfigCommandParams, type ISetPdfNativeTextSpansCommandParams, type ISetPdfPageCropBoxCommandParams, type ISetPdfWatermarkConfigCommandParams, type ISilentPrintOptions, type ISilentPrintResult, type ISmartSnapBox, type ISnapGuideLine, type ITemplateVariableMatch, type IUnifiedBarcodeEncoded, type IUniverPdfsConfig, type IUpdatePdfElementsCommandParams, type IUpdatePdfLayerCommandParams, type IUpdatePdfPageMutationParams, type IUpdatePdfPagePropsCommandParams, type IUpdatePdfUnitPropsCommandParams, type IUpdatePdfUnitPropsMutationParams, ImportPdfSourceCommand, type JapanPostBarState, PDF_DIFF_COLORS, PDF_PAGE_PRESETS, type PdfAlignMode, PdfBatesPosition, type PdfCanonicalBarcodeType, PdfColorSpaceType, type PdfConvertibleImageInput, PdfDateTimeKind, PdfDisplayUnit, type PdfDistributeDirection, PdfElementType, type PdfExifMatrixTuple, type PdfExifOrientation, PdfImportError, type PdfImportErrorCode, PdfInteractionMode, PdfIoService, type PdfIoTarget, PdfIoTargetError, type PdfLayerOrderMode, PdfPageRotation, type PdfRawImportWarning, PdfSelectionService, PdfUnitModel, RemovePdfElementsMutation, RemovePdfLayerCommand, RemovePdfPageCommand, RemovePdfPageMutation, ReorderPdfElementOrderMutation, ReorderPdfLayerCommand, ReorderPdfPagesCommand, ReorderPdfPagesMutation, ReplacePdfNativeTextCommand, ReplacePdfSnapshotCommand, RestorePdfVersionCommand, RotatePdfPageCommand, SavePdfVersionCommand, SetPdfAttachmentsCommand, SetPdfBatesConfigCommand, SetPdfBookmarksCommand, SetPdfHeaderFooterConfigCommand, SetPdfNativeTextSpansCommand, SetPdfPageCropBoxCommand, SetPdfPageSizeCommand, SetPdfWatermarkConfigCommand, type SignatureQuadraticSegment, type SilentPrintDriverType, type SvgMat2D, UNIVER_PDFS_PLUGIN_NAME, UniverPdfsPlugin, UpdatePdfElementsCommand, UpdatePdfElementsMutation, UpdatePdfLayerCommand, UpdatePdfPageMutation, UpdatePdfPagePropsCommand, UpdatePdfUnitPropsCommand, UpdatePdfUnitPropsMutation, applyOcrToUnitPage, autoDetectFormFieldsOnPage, buildOverlayImportCandidateSnapshot, buildPdfTemplateFromOcrFields, canonicalJsonStringify, cmykToRgb, comparePdfBytes, comparePdfUnits, computeBarcodeLayoutBox, computeCircleMarkBezierEllipse, computeDynamicLayoutSplitRanges, computeElementCenterTransformMatrix, computeExifTransformMatrix, computeExpandedTextHeightMm, computeExpandedTextHeightPt, computeImageFitPlacement, computePasteCascadeOffset, computePdfPayloadDigest, computeSmartSnapWithEqualGap, convertImagesToPdfBytes, convertMarkdownToPdfBytes, convertMarkdownToPdfUnit, convertPdfBytesToCsv, convertPdfBytesToDocxBytes, convertPdfToSheetStructure, convertPdfToWordStructure, convertPdfUnitToCsv, createDefaultElement, createDefaultPdfUnitData, createHttpSilentPrintAdapter, createPdfBrowserFidelitySamples, detectFormFieldsFromPageSpans, drawVectorSvgOnPdfPage, encodeBarcodeByFormat, encodeCodabar, encodeCode128, encodeCode39, encodeDataMatrix, encodeEan13, encodeEan8, encodeGs1128, encodeGs1DataMatrix, encodeItf14, encodeJapanPost, encodeNw7, encodePdf417, encodeQrCodeMatrix, encodeUpcA, encodeUpcE, evaluatePdfFormExpression, evaluateSafeTemplateExpression, exportFormDataToFdf, exportFormDataToXfdf, exportPdfToDocxSnapshot, exportPdfToWorkbookSnapshot, exportSignedPdfWithAuditSeal, extractAttachmentsFromPdfBytes, extractNativeTextSpansFromPdfBytes, formatGs1HumanReadable, formatPdfDateTimeValue, generatePdfTemplateByPrompt, getDefaultDateTimeFormat, getRegisteredOcrAdapter, importAcroFormPdfToUnit, importFormDataFromFdf, importFormDataFromXfdf, importPdfSource, insertPdfPagesBytes, inspectPdfBytePageSizes, isAspectRatioLockedBarcodeType, isCircleMarkChecked, isExifDimensionsSwapped, mayBeJson, mergePdfBytes, movePdfPageBytes, normalizeBarcodeFormatType, normalizePdfImportWarnings, optimizePdfUnit, organizePdfBytes, paginatePdfListItems, parseGs1ApplicationIdentifiers, parseInlineMarkdownToSpans, parseObjectPositionRatios, parsePdfColorWithAlpha, parsePdfContentStreamTextOps, parsePdfPageRange, parseSafeKeyValueRecord, parseSvgToVectorCommands, parseSvgTransformAttr, readJpegExifOrientation, recalculatePdfFormFields, rectsIntersect, registerOcrAdapter, removePdfPagesBytes, renderBarcodeSvgByFormat, renderBarcodeSvgDataUrlByFormat, renderDataMatrixSvg, renderDataMatrixSvgDataUrl, renderGs1128Svg, renderGs1128SvgDataUrl, renderGs1DataMatrixSvg, renderGs1DataMatrixSvgDataUrl, renderPdf417Svg, renderPdf417SvgDataUrl, renderPdfBytesToImages, resolveMultiVariableText, rgbToCmyk, rotatePdfPagesBytes, runPdfBatchPipeline, safeLookupVariablePath, sanitizePdfUnit, scanTemplateExpressionTokens, sha256BytesSync, sha256Hex, sha256HexSync, signPdfUnitWithDigest, exportSignedPdfWithAuditSeal as signPdfWithAuditDigest, smoothSignatureStrokeQuadratic, splitPdfBytes, stripPdfPageNativeTextInRects, svgToDataUri, toHtmlDateTimeInputValue, toPdfLibColor, toggleCircleMarkState, validatePdfFormFields, verifyPdfAuditSeal as verifyPdfAuditDigest, verifyPdfAuditSeal, verifyPdfUnitSignature, visitTemplateVariables, wrapPdfTextLines };
@@ -1,5 +1,5 @@
1
- import { S as IJsxAbsoluteProps, aB 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, bh as PdfJsxComponent, Q as IExportJsxToPdfOptions, b0 as IRenderJsxOptions, I as IPdfUnitData, a$ as IPdfmeTemplate } from '../jsx-dev-runtime-5tXCUq4v.js';
2
- export { J as Fragment, V as IJsxContainerStyleProps, a9 as IJsxTableColumnSpec, b3 as JSX, b5 as PDF_JSX_ELEMENT_SYMBOL, b6 as PDF_JSX_FRAGMENT_SYMBOL, bg as PdfJsxChild, bi as PdfJsxIntrinsicKind, bj as PdfJsxPaddingSpec, by as createPdfJsxNode, bE as evaluatePdfJsxElement, bK as extractJsxTextContent, bN as flattenJsxChildrenToNodes, bU as isPdfJsxNode, bV as jsx, bW as jsxDEV, bX as jsxs, c5 as resolvePaddingMm } from '../jsx-dev-runtime-5tXCUq4v.js';
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';
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, b3 as JSX, bV as jsx, bW as jsxDEV, bX as jsxs } from '../jsx-dev-runtime-5tXCUq4v.js';
1
+ export { J as Fragment, bc as JSX, ce as jsx, cf as jsxDEV, cg as jsxs } from '../jsx-dev-runtime-Ch1WuW58.js';
2
2
  import '@univerjs/core';
@@ -1,2 +1,2 @@
1
- export { J as Fragment, b3 as JSX, bV as jsx, bW as jsxDEV, bX as jsxs } from '../jsx-dev-runtime-5tXCUq4v.js';
1
+ export { J as Fragment, bc as JSX, ce as jsx, cf as jsxDEV, cg as jsxs } from '../jsx-dev-runtime-Ch1WuW58.js';
2
2
  import '@univerjs/core';
@@ -248,6 +248,10 @@ interface IPdfTableColumn {
248
248
  decimals?: number;
249
249
  currencySymbol?: string;
250
250
  summaryType?: 'none' | 'sum' | 'avg' | 'count';
251
+ /** Optional column-level shrink-to-fit when cell text overflows row height (`T6`) */
252
+ autoFitFontSize?: boolean;
253
+ /** Minimum shrunk font size in points when `autoFitFontSize` is enabled (default `6`) */
254
+ minFontSize?: number;
251
255
  }
252
256
  interface IPdfImageCrop {
253
257
  /** Left inset ratio (0..0.9) */
@@ -381,6 +385,16 @@ interface IPdfTableElement extends IPdfPageElementBase {
381
385
  showGrandTotal?: boolean;
382
386
  /** Label for the grand-total row (default `'总计'`) */
383
387
  grandTotalLabel?: string;
388
+ /** Repeat header row on continuation pages when paginated (`true` by default when `showHead !== false`) */
389
+ repeatHeader?: boolean;
390
+ /** Table overflow pagination mode (`'auto'` default, or `'none'` to clip to single-page capacity and emit `TABLE_OVERFLOW` diagnostic) */
391
+ pagination?: 'auto' | 'none';
392
+ /** Zebra stripe parity across continuation pages (`'continuous'` global row index default, or `'chunk'` per-page reset) */
393
+ zebraParity?: 'continuous' | 'chunk';
394
+ /** Optional table-level shrink-to-fit for overflowing cell text (`T6`) */
395
+ autoFitFontSize?: boolean;
396
+ /** Minimum shrunk font size in points when `autoFitFontSize` is enabled (default `6`) */
397
+ minFontSize?: number;
384
398
  headerStyle?: IPdfTextStyle;
385
399
  bodyStyle?: IPdfTextStyle;
386
400
  }
@@ -1000,7 +1014,138 @@ interface IPdfFontDiagnosisReport {
1000
1014
  */
1001
1015
  declare function diagnosePdfFonts(unitOrTemplate: IPdfUnitData | IPdfmeTemplate, options?: IDiagnosePdfFontsOptions): IPdfFontDiagnosisReport;
1002
1016
 
1017
+ interface ITrueTypeFontInspection {
1018
+ sfntVersion: number;
1019
+ tables: string[];
1020
+ numGlyphs: number;
1021
+ unitsPerEm: number;
1022
+ ascent: number;
1023
+ descent: number;
1024
+ lineGap: number;
1025
+ indexToLocFormat: 0 | 1;
1026
+ bbox: [number, number, number, number];
1027
+ mappedCodePointCount: number;
1028
+ }
1029
+ interface ISubsetFontResult {
1030
+ subsetBytes: Uint8Array;
1031
+ originalByteLength: number;
1032
+ subsetByteLength: number;
1033
+ glyphCount: number;
1034
+ codePointToGid: Record<number, number>;
1035
+ gidAdvanceWidths: number[];
1036
+ unitsPerEm: number;
1037
+ ascent: number;
1038
+ descent: number;
1039
+ bbox: [number, number, number, number];
1040
+ }
1041
+ /**
1042
+ * Scans an `IPdfUnitData` snapshot (plus optional dynamic runtime data) and returns
1043
+ * sorted unique Unicode code points used across text boxes, lists, table headers/cells,
1044
+ * form controls, stamps, barcodes, and watermarks.
1045
+ */
1046
+ declare function collectUsedCodePointsFromPdfUnit(unitData: IPdfUnitData, data?: Record<string, unknown>): number[];
1047
+ interface IPdfMissingGlyphItem {
1048
+ pageId?: string;
1049
+ elementId: string;
1050
+ chars: string[];
1051
+ codePoints: string[];
1052
+ }
1053
+ /**
1054
+ * Inspects resolved visible text across all pages & elements of `unitData` against a parsed TrueType
1055
+ * font's Unicode `cmap` (or `subset.codePointToGid`), returning per-element missing glyph diagnostics.
1056
+ */
1057
+ declare function collectMissingGlyphsFromPdfUnit(unitData: IPdfUnitData, hasGlyph: (codePoint: number) => boolean, data?: Record<string, unknown>, formatTableCell?: (rawValue: unknown, col: IPdfTableElement['columns'][number]) => string): IPdfMissingGlyphItem[];
1058
+ /**
1059
+ * Inspects a TrueType (`sfnt`) font binary and returns structural metrics and glyph counts.
1060
+ */
1061
+ declare function inspectTrueTypeFont(ttfBytes: Uint8Array): ITrueTypeFontInspection;
1062
+ /**
1063
+ * Returns the set of Unicode code points mapped to non-zero glyph IDs in a TrueType (`sfnt`) font's `cmap` table.
1064
+ */
1065
+ declare function getTrueTypeMappedCodePoints(ttfBytes: Uint8Array): Set<number>;
1066
+ /**
1067
+ * Pure-TS TrueType (`TTF`) Font Subsetter:
1068
+ * Extracts `.notdef` (GID 0), all requested Unicode `codePoints`, and recursive composite glyph
1069
+ * dependencies (`numberOfContours < 0`), rebuilding compact `glyf`, `loca`, `hmtx`, `hhea`,
1070
+ * `maxp`, `head`, `cmap`, `post`, `name`, and `OS/2` tables into a valid subset TTF `Uint8Array`.
1071
+ */
1072
+ declare function subsetTrueTypeFont(ttfBytes: Uint8Array, codePoints: number[]): ISubsetFontResult;
1073
+ /**
1074
+ * Deterministically builds a valid, self-contained TrueType (`sfnt` `0x00010000`) font fixture
1075
+ * containing `.notdef`, printable ASCII (`0x20..0x7E`), CJK ideographs (200+ glyphs by default),
1076
+ * and a composite glyph (`U+2605` `'★'`) for clean-room unit testing without external binary files.
1077
+ */
1078
+ declare function buildMinimalTestTrueTypeFont(extraCodePoints?: number[]): Uint8Array;
1079
+
1003
1080
  type PdfCjkTextMode = 'raster-hd' | 'cid-vector' | 'subset-ttf';
1081
+ type PdfFontFallbackPolicy = 'error' | 'raster-hd' | 'cid-vector';
1082
+ type PdfMissingGlyphPolicy = 'error' | 'warn';
1083
+ type PdfTablePaginationMode = 'auto' | 'none';
1084
+ type PdfZebraParityMode = 'continuous' | 'chunk';
1085
+ interface IPdfFontSource {
1086
+ /** Optional font family label (used in diagnostics and optional family matching) */
1087
+ family?: string;
1088
+ /** Font weight ('normal' default, or 'bold' for dedicated bold glyph embedding) */
1089
+ weight?: 'normal' | 'bold';
1090
+ /** Raw TrueType (.ttf) font bytes supplied by host */
1091
+ bytes?: Uint8Array | ArrayBuffer;
1092
+ /** Same-origin or CDN URL to a TrueType (.ttf) font file hosted by host */
1093
+ url?: string;
1094
+ /** Optional SRI digest ('sha256-...', 'sha384-...', or 'sha512-...') verified before parsing */
1095
+ integrity?: string;
1096
+ }
1097
+ interface IPdfFailedFontEntry {
1098
+ index: number;
1099
+ family?: string;
1100
+ weight?: 'normal' | 'bold';
1101
+ url?: string;
1102
+ reason: string;
1103
+ }
1104
+ interface IPdfRenderWarning {
1105
+ code: 'FONT_FALLBACK_ACTIVATED' | 'MISSING_GLYPH' | 'TABLE_OVERFLOW';
1106
+ message: string;
1107
+ pageId?: string;
1108
+ elementId?: string;
1109
+ details?: Record<string, unknown>;
1110
+ }
1111
+ declare class PdfRenderError extends Error {
1112
+ readonly code: 'FONT_UNAVAILABLE' | 'MISSING_GLYPH';
1113
+ readonly failedFonts?: IPdfFailedFontEntry[];
1114
+ readonly missingGlyphs?: IPdfMissingGlyphItem[];
1115
+ constructor(code: 'FONT_UNAVAILABLE' | 'MISSING_GLYPH', message: string, extra?: {
1116
+ failedFonts?: IPdfFailedFontEntry[];
1117
+ missingGlyphs?: IPdfMissingGlyphItem[];
1118
+ });
1119
+ }
1120
+ interface IPdfBrowserRenderOptions {
1121
+ /** Default: 'raster-hd' when omitted and no `fonts` are supplied; defaults to 'subset-ttf' when `fonts` is non-empty */
1122
+ cjkTextMode?: PdfCjkTextMode;
1123
+ /** Host-provided TrueType fonts tried in array order (never written into snapshot) */
1124
+ fonts?: IPdfFontSource[];
1125
+ /**
1126
+ * Action when `subset-ttf` is requested or `fonts` are provided and all candidate fonts fail:
1127
+ * - `'error'` (default): throw `PdfRenderError('FONT_UNAVAILABLE', ...)` naming failed font(s)
1128
+ * - `'raster-hd' | 'cid-vector'`: explicitly fall back and emit `FONT_FALLBACK_ACTIVATED` via `onWarning`
1129
+ */
1130
+ fallback?: PdfFontFallbackPolicy;
1131
+ /**
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', ...)`
1135
+ */
1136
+ missingGlyph?: PdfMissingGlyphPolicy;
1137
+ /** Structured diagnostic warning callback */
1138
+ onWarning?: (warning: IPdfRenderWarning) => void;
1139
+ /** Table overflow pagination mode (`'auto'` default, or `'none'` to keep 1 page and emit `TABLE_OVERFLOW`) */
1140
+ tablePagination?: PdfTablePaginationMode;
1141
+ /** Whether paginated tables repeat their header row on continuation pages (`true` default) */
1142
+ repeatHeader?: boolean;
1143
+ /** Zebra stripe parity across continuation pages (`'continuous'` default or `'chunk'`) */
1144
+ zebraParity?: PdfZebraParityMode;
1145
+ /** Optional deterministic creation/modification timestamp for reproducible byte output */
1146
+ creationDate?: Date | string;
1147
+ }
1148
+ declare function clearPdfFontUrlCache(): void;
1004
1149
  interface IDiagnosticGridOverlayOptions {
1005
1150
  /** Minor grid step in millimeters (default `5`) */
1006
1151
  minorStepMm?: number;
@@ -1033,6 +1178,10 @@ interface IPdfExportOptions {
1033
1178
  cjkTextMode?: PdfCjkTextMode;
1034
1179
  /** Custom TrueType (`.ttf`) font bytes used when `cjkTextMode === 'subset-ttf'` */
1035
1180
  customFontBytes?: Uint8Array;
1181
+ /** Optional dedicated bold TrueType (`.ttf`) font bytes used when `fontWeight === 'bold'` in `subset-ttf` */
1182
+ customBoldFontBytes?: Uint8Array;
1183
+ /** Unified browser/export rendering, font fallback, missing-glyph, and table pagination options */
1184
+ render?: IPdfBrowserRenderOptions;
1036
1185
  /** Color space emission mode (`'rgb'` default or print `'cmyk'`) */
1037
1186
  colorType?: PdfColorSpaceType;
1038
1187
  /** Overlays a minor/major millimeter diagnostic grid + dashed element bounding boxes & `fieldName (type)` labels */
@@ -1069,6 +1218,17 @@ interface IPdfVariableValidationResult {
1069
1218
  * Inspects `IPdfTextElement.requiredVariables` as well as elements marked `required: true`.
1070
1219
  */
1071
1220
  declare function validatePdfTemplateVariables(unitData: IPdfUnitData, data?: Record<string, unknown>): IPdfVariableValidationResult;
1221
+ /**
1222
+ * Canonical line-breaking engine shared across `subset-ttf`, `cid-vector`, `raster-hd`, and Western ASCII paths:
1223
+ * - Normalizes `\r\n` / `\r` -> `\n`
1224
+ * - Breaks CJK ideographs & fullwidth punctuation per character
1225
+ * - Breaks Western runs on whitespace word boundaries (trimming leading spaces on wrapped lines)
1226
+ * - Splits overlong single Western words character-by-character so lines never exceed `maxWidthPt`
1227
+ */
1228
+ declare function wrapMixedCjkAndLatinLines(rawText: string, maxWidthPt: number, measureFn: (s: string) => number): Array<{
1229
+ text: string;
1230
+ isLastInParagraph: boolean;
1231
+ }>;
1072
1232
  declare function renderQrCodeDataUrl(content: string, foregroundColor?: string, backgroundColor?: string): Promise<string>;
1073
1233
  interface IComputeDynamicFontSizeParams {
1074
1234
  text: string;
@@ -1117,7 +1277,35 @@ interface IPdfTablePageChunk {
1117
1277
  * for `showPageSubtotal` (on every page) and `showGrandTotal` (on the final page), and protecting
1118
1278
  * against orphan headers when `avoidOrphanHeader` is active.
1119
1279
  */
1120
- declare function paginatePdfTableRows(el: IPdfTableElement, rawRows: unknown[][], pageHeight: number): IPdfTablePageChunk[];
1280
+ interface IPdfTableRowCapacity {
1281
+ /** Single-page body row capacity (alias of `firstPageRows`) */
1282
+ capacityRows: number;
1283
+ firstPageRows: number;
1284
+ continuationPageRows: number;
1285
+ headerHeight: number;
1286
+ rowHeight: number;
1287
+ availableFirstPageHeight: number;
1288
+ }
1289
+ interface IPdfTablePaginationOptions {
1290
+ marginTopPt?: number;
1291
+ marginBottomPt?: number;
1292
+ tablePagination?: PdfTablePaginationMode;
1293
+ repeatHeader?: boolean;
1294
+ onOverflow?: (info: {
1295
+ capacityRows: number;
1296
+ actualRows: number;
1297
+ overflowRows: number;
1298
+ }) => void;
1299
+ }
1300
+ /**
1301
+ * Pure helper computing single-page and continuation-page body row capacity for an `IPdfTableElement`,
1302
+ * allowing hosts to validate table row counts before saving or exporting (`T9`).
1303
+ */
1304
+ declare function calculatePdfTableRowCapacity(el: IPdfTableElement, pageHeight: number, marginsPt?: {
1305
+ top?: number;
1306
+ bottom?: number;
1307
+ }): IPdfTableRowCapacity;
1308
+ declare function paginatePdfTableRows(el: IPdfTableElement, rawRows: unknown[][], pageHeight: number, paginationOpts?: IPdfTablePaginationOptions): IPdfTablePageChunk[];
1121
1309
  /**
1122
1310
  * Formats a Bates legal stamp string for a 0-based page index (e.g. `YD-DOC-000001`).
1123
1311
  */
@@ -1481,4 +1669,4 @@ declare namespace JSX {
1481
1669
  }
1482
1670
  }
1483
1671
 
1484
- 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 IPdfmeTemplate 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 IPdfInputContractViolation as aA, type IPdfJsxNode as aB, type IPdfLineElement as aC, type IPdfPageElementBase as aD, type IPdfParagraphBlock as aE, type IPdfPolygonElement as aF, type IPdfPolygonPoint as aG, type IPdfQrCodeElement as aH, type IPdfRadioGroupElement as aI, type IPdfRedactionElement as aJ, type IPdfSchemaDiagnosticIssue as aK, type IPdfSelectElement as aL, type IPdfShapeElement as aM, type IPdfSignatureElement as aN, type IPdfStampElement as aO, type IPdfSvgElement as aP, type IPdfTableBorderWidths as aQ, type IPdfTableCellStyle as aR, type IPdfTableColumn as aS, type IPdfTableElement as aT, type IPdfTableMerge as aU, type IPdfTablePageChunk as aV, type IPdfTableThemePreset as aW, type IPdfTemplateSchemaValidationResult as aX, type IPdfVariableValidationResult as aY, type IPdfmeBlankPdf as aZ, type IPdfmeSchemaItem as a_, type IJsxTableProps as aa, type IJsxTextProps as ab, type IPdfAnnotationElement as ac, type IPdfAnnotationReply as ad, type IPdfBarcodeElement as ae, type IPdfCheckboxElement as af, type IPdfDatasetField as ag, type IPdfDatasetSchema as ah, type IPdfDateTimeElement as ai, type IPdfDocumentMetadata as aj, type IPdfDurableEditState as ak, type IPdfDynamicFontSizeConfig as al, type IPdfElement as am, type IPdfElementBase as an, type IPdfElementTransform as ao, type IPdfEllipseElement as ap, type IPdfExportCapabilitiesReport as aq, type IPdfFieldContractHint as ar, type IPdfFontDiagnosisReport as as, type IPdfFontDiagnosticIssue as at, type IPdfFontDoctorInputEntry as au, type IPdfImageCrop as av, type IPdfImageElement as aw, type IPdfInkElement as ax, type IPdfInkPoint as ay, type IPdfInputContractValidationResult as az, type IPdfPage as b, overlayDiagnosticGridOnPdfBytes as b$, type IRenderJsxOptions as b0, type ITemplateCjkReport as b1, type IValidatePdfTemplateSchemaOptions as b2, JSX as b3, PAGE_SIZE_PRESETS_MM as b4, PDF_JSX_ELEMENT_SYMBOL as b5, PDF_JSX_FRAGMENT_SYMBOL as b6, PDF_TABLE_THEME_PRESETS as b7, PT_PER_MM as b8, type PdfAnnotationStatus as b9, detectCJKInPdfInputs as bA, detectCJKInPdfTemplate as bB, detectPaperSizePreset as bC, diagnosePdfFonts as bD, evaluatePdfJsxElement as bE, exportBatchPdfBytes as bF, exportCalibrationGridPdfBytes as bG, exportPdfBytes as bH, exportToPdfmeTemplate as bI, extractAcroFormValuesFromPdfBytes as bJ, extractJsxTextContent as bK, extractPdfFormValues as bL, fillPdfFormValues as bM, flattenJsxChildrenToNodes as bN, formatBatesNumber as bO, formatPdfTableCell as bP, fromPdfmeTemplate as bQ, importFromPdfmeTemplate as bR, inspectPdfExportCapabilities as bS, isFontUrlSafeToFetch as bT, isPdfJsxNode as bU, jsx as bV, jsxDEV as bW, jsxs as bX, mmToPt as bY, normalizeBarcodePayloadForFormat as bZ, normalizeImageCrop as b_, PdfAnnotationType as ba, type PdfBarcodeFormat as bb, type PdfCjkScriptBlock as bc, type PdfCjkTextMode as bd, type PdfDynamicFontFitMode as be, PdfImageSourceType as bf, type PdfJsxChild as bg, type PdfJsxComponent as bh, type PdfJsxIntrinsicKind as bi, type PdfJsxPaddingSpec as bj, PdfListKind as bk, PdfListPresetId as bl, type PdfPaperPresetName as bm, PdfTableBorderStyle as bn, PdfTableCellVerticalAlign as bo, PdfTextAnchor as bp, type PdfTextFormatMode as bq, type PdfTextOverflowMode as br, UNIVER_PDF_SCHEMA as bs, UNIVER_PDF_SCHEMA_VERSION as bt, collectPdfInputContractHints as bu, computeAutoFitFontSize as bv, computeDynamicFontSize as bw, computePdfTableSummaryRow as bx, createPdfJsxNode as by, detectCJKCharacters as bz, type IPdfPageSize as c, paginatePdfTableRows as c0, ptToMm as c1, renderBarcodeDataUrl as c2, renderQrCodeDataUrl as c3, resolveDynamicTableRawRows as c4, resolvePaddingMm as c5, resolvePageSizeMm as c6, resolvePolygonNormalizedPoints as c7, resolveTemplateString as c8, toPdfmeTemplate as c9, validatePdfInputContract as ca, validatePdfTemplateSchema as cb, validatePdfTemplateVariables as cc, 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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yudaocode/univer-pdfs",
3
- "version": "1.6.211",
3
+ "version": "1.6.213",
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",
@@ -26,7 +26,8 @@
26
26
  "registry": "https://registry.npmjs.org/"
27
27
  },
28
28
  "files": [
29
- "lib"
29
+ "lib",
30
+ "PDF_BROWSER_RENDERING_CONTRACT.md"
30
31
  ],
31
32
  "main": "./lib/cjs/index.js",
32
33
  "module": "./lib/es/index.js",