@yudaocode/univer-pdfs 1.6.218 → 1.6.219
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/lib/cjs/index.js +4761 -2984
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/jsx/index.js +1871 -1609
- package/lib/cjs/jsx/index.js.map +1 -1
- package/lib/es/{chunk-SUXA7HBV.js → chunk-PQUNQAVL.js} +2655 -1951
- package/lib/es/chunk-PQUNQAVL.js.map +1 -0
- package/lib/es/index.js +1508 -430
- package/lib/es/index.js.map +1 -1
- package/lib/es/jsx/index.js +1 -1
- package/lib/types/index.d.ts +154 -4
- package/lib/types/jsx/index.d.ts +2 -2
- package/lib/types/jsx/jsx-dev-runtime.d.ts +1 -1
- package/lib/types/jsx/jsx-runtime.d.ts +1 -1
- package/lib/types/{jsx-dev-runtime-DsfnOIFS.d.ts → jsx-dev-runtime-B1jMa7VW.d.ts} +51 -4
- package/package.json +1 -1
- package/lib/es/chunk-SUXA7HBV.js.map +0 -1
package/lib/es/jsx/index.js
CHANGED
package/lib/types/index.d.ts
CHANGED
|
@@ -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 IPdfBookmarkItem, j as IPdfAttachment, k as IPdfSecurityConfig, l as IPdfSecurityPermissions, m as IPdfSignatureEnvelope, P as PdfElementType,
|
|
2
|
-
export {
|
|
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 IPdfBookmarkItem, j as IPdfAttachment, k as IPdfSecurityConfig, l as IPdfSecurityPermissions, m as IPdfSignatureEnvelope, n as IPdfAnnotationReply, P as PdfElementType, o as IPdfTextStyle, p as PdfPageRotation, q as PdfAnnotationReviewStatus, r as IPdfBatesConfig, s as IPdfHeaderFooterConfig, t as IPdfNativeTextSpan, u as IPdfCropBox, v as IPdfCropBoxInput, w as IPdfWatermarkConfig, x as IPdfDocumentData, y as IPdfTextElement, z as PdfDateTimeKind, A as IPdfCircleMarkElement, B as IPdfListElement, C as IPdfRichTextSpan, D as PdfColorSpaceType, E as IPdfExportOptions, F as PDF_PAGE_PRESETS, G as PdfBatesPosition, H as IPdfSignerInfo, J as IPdfSecurityPermissionFlags, K as IPdfStampElement, L as IPdfSvgElement, M as IPdfjsAssetsConfig, N as PdfDisplayUnit, O as PdfInteractionMode, Q as IPdfVersionSnapshot } from './jsx-dev-runtime-B1jMa7VW.js';
|
|
2
|
+
export { R as DEFAULT_PDF_CJK_FONT_FAMILY, S as DEFAULT_PDF_CJK_FONT_FILES, T as DEFAULT_PDF_CJK_FONT_PACKAGE, U as DEFAULT_PDF_CJK_FONT_VERSION, V as Fragment, W as ICjkDetectionSummary, X as IComputeDynamicFontSizeParams, Y as IDetectedPaperPreset, Z as IDiagnosePdfFontsOptions, _ as IDiagnosticGridOverlayOptions, $ as IExportJsxToPdfOptions, a0 as IInputsCjkReport, a1 as IJsxAbsoluteProps, a2 as IJsxBarcodeProps, a3 as IJsxBoxProps, a4 as IJsxContainerStyleProps, a5 as IJsxDocumentProps, a6 as IJsxHeaderFooterProps, a7 as IJsxImageProps, a8 as IJsxLineProps, a9 as IJsxListProps, aa as IJsxMultiVariableTextProps, ab as IJsxPageBreakProps, ac as IJsxPageProps, ad as IJsxQrCodeProps, ae as IJsxRowProps, af as IJsxShapeProps, ag as IJsxSpacerProps, ah as IJsxStackProps, ai as IJsxStaticProps, aj as IJsxSvgProps, ak as IJsxTableColumnSpec, al as IJsxTableProps, am as IJsxTextProps, an as IPdfAnnotationElement, ao as IPdfBarcodeElement, ap as IPdfBrowserRenderOptions, aq as IPdfCheckboxElement, ar as IPdfCjkFontSourcesOptions, as as IPdfCommentThread, at as IPdfDatasetField, au as IPdfDatasetSchema, av as IPdfDateTimeElement, aw as IPdfDocumentMetadata, ax as IPdfDurableEditState, ay as IPdfDynamicFontSizeConfig, az as IPdfElement, aA as IPdfElementBase, aB as IPdfElementTransform, aC as IPdfEllipseElement, aD as IPdfExportCapabilitiesReport, aE as IPdfFailedFontEntry, aF as IPdfFieldContractHint, aG as IPdfFontDiagnosisReport, aH as IPdfFontDiagnosticIssue, aI as IPdfFontDoctorInputEntry, aJ as IPdfFontSource, aK as IPdfImageCrop, aL as IPdfImageElement, aM as IPdfInkElement, aN as IPdfInkPoint, aO as IPdfInputContractValidationResult, aP as IPdfInputContractViolation, aQ as IPdfJsxNode, aR as IPdfLayerConfig, aS as IPdfLineElement, aT as IPdfMissingGlyphItem, aU as IPdfPageElementBase, aV as IPdfParagraphBlock, aW as IPdfPolygonElement, aX as IPdfPolygonPoint, aY as IPdfQrCodeElement, aZ as IPdfRadioGroupElement, a_ as IPdfRedactionElement, a$ as IPdfRenderWarning, b0 as IPdfSchemaDiagnosticIssue, b1 as IPdfSelectElement, b2 as IPdfShapeElement, b3 as IPdfSignatureElement, b4 as IPdfTableBorderWidths, b5 as IPdfTableCellStyle, b6 as IPdfTableColumn, b7 as IPdfTableElement, b8 as IPdfTableMerge, b9 as IPdfTablePageChunk, ba as IPdfTablePaginationOptions, bb as IPdfTableRowCapacity, bc as IPdfTableThemePreset, bd as IPdfTemplateSchemaValidationResult, be as IPdfVariableValidationResult, bf as IPdfmeBlankPdf, bg as IPdfmeSchemaItem, bh as IPdfmeTemplate, bi as IRenderJsxOptions, bj as ISubsetFontResult, bk as ITemplateCjkReport, bl as ITrueTypeFontInspection, bm as IValidatePdfTemplateSchemaOptions, bn as JSX, bo as PAGE_SIZE_PRESETS_MM, bp as PDF_JSX_ELEMENT_SYMBOL, bq as PDF_JSX_FRAGMENT_SYMBOL, br as PDF_TABLE_THEME_PRESETS, bs as PT_PER_MM, bt as PdfAnnotationStatus, bu as PdfAnnotationType, bv as PdfBarcodeFormat, bw as PdfCjkScriptBlock, bx as PdfCjkTextMode, by as PdfDynamicFontFitMode, bz as PdfFontFailureKind, bA as PdfFontFallbackPolicy, bB as PdfImageSourceType, bC as PdfJsxChild, bD as PdfJsxComponent, bE as PdfJsxIntrinsicKind, bF as PdfJsxPaddingSpec, bG as PdfListKind, bH as PdfListPresetId, bI as PdfMissingGlyphPolicy, bJ as PdfPaperPresetName, bK as PdfRenderError, bL as PdfTableBorderStyle, bM as PdfTableCellVerticalAlign, bN as PdfTablePaginationMode, bO as PdfTextAnchor, bP as PdfTextFormatMode, bQ as PdfTextOverflowMode, bR as PdfZebraParityMode, bS as UNIVER_PDF_SCHEMA, bT as UNIVER_PDF_SCHEMA_VERSION, bU as buildMinimalTestTrueTypeFont, bV as calculatePdfTableRowCapacity, bW as clearPdfFontUrlCache, bX as collectMissingGlyphsFromPdfUnit, bY as collectPdfInputContractHints, bZ as collectUsedCodePointsFromPdfUnit, b_ as computeAutoFitFontSize, b$ as computeDynamicFontSize, c0 as computeFontUrlCacheKey, c1 as computePdfTableSummaryRow, c2 as createPdfCjkFontSources, c3 as createPdfJsxNode, c4 as detectCJKCharacters, c5 as detectCJKInPdfInputs, c6 as detectCJKInPdfTemplate, c7 as detectPaperSizePreset, c8 as diagnosePdfFonts, c9 as evaluatePdfJsxElement, ca as exportBatchPdfBytes, cb as exportCalibrationGridPdfBytes, cc as exportPdfBytes, cd as exportPdfUnitToBytes, ce as exportToPdfmeTemplate, cf as extractAcroFormValuesFromPdfBytes, cg as extractJsxTextContent, ch as extractPdfFormValues, ci as fillPdfFormValues, cj as flattenJsxChildrenToNodes, ck as formatBatesNumber, cl as formatPdfTableCell, cm as fromPdfmeTemplate, cn as getTrueTypeMappedCodePoints, co as importFromPdfmeTemplate, cp as inspectPdfExportCapabilities, cq as inspectTrueTypeFont, cr as isFontUrlSafeToFetch, cs as isPdfJsxNode, ct as jsx, cu as jsxDEV, cv as jsxs, cw as mmToPt, cx as normalizeBarcodePayloadForFormat, cy as normalizeImageCrop, cz as overlayDiagnosticGridOnPdfBytes, cA as paginatePdfTableRows, cB as ptToMm, cC as renderBarcodeDataUrl, cD as renderQrCodeDataUrl, cE as resolveDynamicTableRawRows, cF as resolvePaddingMm, cG as resolvePageSizeMm, cH as resolvePdfCropBoxPt, cI as resolvePolygonNormalizedPoints, cJ as resolveTemplateString, cK as subsetTrueTypeFont, cL as toPdfmeTemplate, cM as validatePdfInputContract, cN as validatePdfTemplateSchema, cO as validatePdfTemplateVariables, cP as wrapMixedCjkAndLatinLines } from './jsx-dev-runtime-B1jMa7VW.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';
|
|
@@ -180,7 +180,7 @@ declare const RotatePdfPageCommand: ICommand<IRotatePdfPageCommandParams>;
|
|
|
180
180
|
interface ISetPdfPageCropBoxCommandParams {
|
|
181
181
|
unitId?: string;
|
|
182
182
|
pageId?: string;
|
|
183
|
-
cropBox?: IPdfCropBox;
|
|
183
|
+
cropBox?: IPdfCropBox | IPdfCropBoxInput | null;
|
|
184
184
|
}
|
|
185
185
|
declare const SetPdfPageCropBoxCommand: ICommand<ISetPdfPageCropBoxCommandParams>;
|
|
186
186
|
declare const SetPdfPageSizeCommand: ICommand<{
|
|
@@ -299,6 +299,34 @@ interface IUpdatePdfUnitPropsCommandParams {
|
|
|
299
299
|
props?: IPdfUnitPropsPatch;
|
|
300
300
|
}
|
|
301
301
|
declare const UpdatePdfUnitPropsCommand: ICommand<IUpdatePdfUnitPropsCommandParams>;
|
|
302
|
+
interface IAddPdfAnnotationReplyCommandParams {
|
|
303
|
+
unitId?: string;
|
|
304
|
+
pageId?: string;
|
|
305
|
+
elementId: string;
|
|
306
|
+
reply?: Partial<IPdfAnnotationReply> & {
|
|
307
|
+
content: string;
|
|
308
|
+
};
|
|
309
|
+
id?: string;
|
|
310
|
+
author?: string;
|
|
311
|
+
content?: string;
|
|
312
|
+
createdAt?: string;
|
|
313
|
+
onCreated?: (reply: IPdfAnnotationReply) => void;
|
|
314
|
+
}
|
|
315
|
+
declare const AddPdfAnnotationReplyCommand: ICommand<IAddPdfAnnotationReplyCommandParams>;
|
|
316
|
+
interface IDeletePdfAnnotationReplyCommandParams {
|
|
317
|
+
unitId?: string;
|
|
318
|
+
pageId?: string;
|
|
319
|
+
elementId: string;
|
|
320
|
+
replyId: string;
|
|
321
|
+
}
|
|
322
|
+
declare const DeletePdfAnnotationReplyCommand: ICommand<IDeletePdfAnnotationReplyCommandParams>;
|
|
323
|
+
interface ISetPdfAnnotationReviewStatusCommandParams {
|
|
324
|
+
unitId?: string;
|
|
325
|
+
pageId?: string;
|
|
326
|
+
elementId: string;
|
|
327
|
+
reviewStatus: PdfAnnotationReviewStatus;
|
|
328
|
+
}
|
|
329
|
+
declare const SetPdfAnnotationReviewStatusCommand: ICommand<ISetPdfAnnotationReviewStatusCommandParams>;
|
|
302
330
|
|
|
303
331
|
interface IAddPdfElementMutationParams {
|
|
304
332
|
unitId: string;
|
|
@@ -675,6 +703,43 @@ declare function organizePdfBytes(pdfBytes: Uint8Array, planOrOptions: IPdfOrgan
|
|
|
675
703
|
pages?: IPdfOrganizePageSpec[];
|
|
676
704
|
actions?: IPdfOrganizeAction[];
|
|
677
705
|
}): Promise<Uint8Array>;
|
|
706
|
+
interface IPdfParseRangeSpecOptions {
|
|
707
|
+
everyNPages?: number;
|
|
708
|
+
}
|
|
709
|
+
interface IPdfSplitUnitPart {
|
|
710
|
+
label: string;
|
|
711
|
+
pageIndices: number[];
|
|
712
|
+
unit: IPdfUnitData;
|
|
713
|
+
}
|
|
714
|
+
interface IPdfSplitBytesPart {
|
|
715
|
+
label: string;
|
|
716
|
+
pageCount: number;
|
|
717
|
+
bytes: Uint8Array;
|
|
718
|
+
}
|
|
719
|
+
declare function formatPdfPageIndicesLabel(pageIndices: number[]): string;
|
|
720
|
+
/**
|
|
721
|
+
* Parses a page-range split specification into an array of 0-based page index groups (`number[][]`).
|
|
722
|
+
*
|
|
723
|
+
* Supported formats:
|
|
724
|
+
* - Comma/semicolon-separated 1-based groups: `"1-3, 5, 7-9"` -> `[[0, 1, 2], [4], [6, 7, 8]]`
|
|
725
|
+
* - Combined non-contiguous group with `+`: `"1-2+5, 3-4"` -> `[[0, 1, 4], [2, 3]]`
|
|
726
|
+
* - Open-ended trailing range: `"4-"` -> `[[3, ..., totalPages - 1]]`
|
|
727
|
+
* - Parity keywords: `"odd"` -> `[[0, 2, 4, ...]]`, `"even"` -> `[[1, 3, 5, ...]]`, `"all"` / `"*"`
|
|
728
|
+
* - Fixed-size chunking: `"every:2"` / `"every 2"` / `"every2"` / `"single"` or `options.everyNPages`
|
|
729
|
+
*/
|
|
730
|
+
declare function parsePdfPageRangeSpec(spec: string, totalPages: number, options?: IPdfParseRangeSpecOptions): number[][];
|
|
731
|
+
/**
|
|
732
|
+
* Splits an `IPdfUnitData` snapshot into standalone `IPdfUnitData` units according to page-range specs.
|
|
733
|
+
*/
|
|
734
|
+
declare function splitPdfUnitByRanges(unitData: IPdfUnitData, specs: string[], options?: IPdfParseRangeSpecOptions): IPdfSplitUnitPart[];
|
|
735
|
+
/**
|
|
736
|
+
* Splits an arbitrary PDF binary (`Uint8Array`, including password-encrypted PDFs when `options.password` is supplied)
|
|
737
|
+
* into standalone valid PDF binaries using `pdf-lib` `copyPages`.
|
|
738
|
+
*/
|
|
739
|
+
declare function splitPdfBytesByRanges(pdfBytes: Uint8Array, specs: string[], options?: {
|
|
740
|
+
password?: string;
|
|
741
|
+
everyNPages?: number;
|
|
742
|
+
}): Promise<IPdfSplitBytesPart[]>;
|
|
678
743
|
|
|
679
744
|
/** Exact 4-arc cubic Bezier circular/elliptical approximation constant `4 * (sqrt(2) - 1) / 3` */
|
|
680
745
|
declare const CIRCLE_MARK_BEZIER_KAPPA = 0.5522847498;
|
|
@@ -1214,6 +1279,25 @@ declare function renderBarcodeSvgDataUrlByFormat(format: string | undefined, raw
|
|
|
1214
1279
|
height?: number;
|
|
1215
1280
|
}): string;
|
|
1216
1281
|
|
|
1282
|
+
/** 1 PostScript point (1/72 inch) = 12,700 English Metric Units (914,400 EMU / inch) */
|
|
1283
|
+
declare const PPTX_EMU_PER_PT = 12700;
|
|
1284
|
+
declare function ptToPptxEmu(pt: number): number;
|
|
1285
|
+
/**
|
|
1286
|
+
* Converts an `IPdfUnitData` snapshot into a valid, zero-dependency OpenXML `.pptx` PresentationML binary (`Uint8Array`).
|
|
1287
|
+
*
|
|
1288
|
+
* Maps each PDF page (`widthPt × heightPt` -> `1 pt = 12700 EMU` in `<p:sldSz>`) to `ppt/slides/slideN.xml`,
|
|
1289
|
+
* converting `TEXT` & `nativeTextSpans` into editable `<p:sp>` text boxes, `TABLE` elements into native `<p:graphicFrame><a:tbl>` tables,
|
|
1290
|
+
* `SHAPE` / `LINE` / `ELLIPSE` elements into native `<p:sp>` shapes, and `IMAGE` data URLs into `ppt/media/imageM.*` + `<p:pic>`.
|
|
1291
|
+
*/
|
|
1292
|
+
declare function convertPdfUnitToPptxBytes(unitData: IPdfUnitData): Uint8Array;
|
|
1293
|
+
/**
|
|
1294
|
+
* Imports a raw PDF binary (`Uint8Array`, decrypting with `options.password` when encrypted)
|
|
1295
|
+
* via `importPdfBytesToUnit` and converts all pages into an editable OpenXML `.pptx` file.
|
|
1296
|
+
*/
|
|
1297
|
+
declare function convertPdfBytesToPptxBytes(pdfBytes: Uint8Array, options?: {
|
|
1298
|
+
password?: string;
|
|
1299
|
+
}): Promise<Uint8Array>;
|
|
1300
|
+
|
|
1217
1301
|
type IPdfWordBlock = {
|
|
1218
1302
|
type: 'heading' | 'paragraph';
|
|
1219
1303
|
text: string;
|
|
@@ -1735,6 +1819,65 @@ interface IPdfImportBytesOptions {
|
|
|
1735
1819
|
*/
|
|
1736
1820
|
declare function importPdfBytesToUnit(pdfBytes: Uint8Array, options?: IPdfImportBytesOptions): Promise<IPdfUnitData>;
|
|
1737
1821
|
|
|
1822
|
+
type PdfStandardStampPresetId = 'approved' | 'rejected' | 'confidential' | 'draft' | 'reviewed' | 'urgent' | 'void' | 'archived';
|
|
1823
|
+
type PdfApprovalStampShape = 'rect' | 'pill' | 'circle';
|
|
1824
|
+
interface IPdfStandardStampPreset {
|
|
1825
|
+
id: PdfStandardStampPresetId;
|
|
1826
|
+
title: string;
|
|
1827
|
+
subtitle: string;
|
|
1828
|
+
color: string;
|
|
1829
|
+
shape: PdfApprovalStampShape;
|
|
1830
|
+
}
|
|
1831
|
+
declare const PDF_STANDARD_STAMP_PRESETS: readonly IPdfStandardStampPreset[];
|
|
1832
|
+
declare const PDF_STANDARD_STAMP_PRESET_MAP: Record<PdfStandardStampPresetId, IPdfStandardStampPreset>;
|
|
1833
|
+
declare function getPdfStandardStampPreset(presetId?: string): IPdfStandardStampPreset | undefined;
|
|
1834
|
+
interface IBuildPdfApprovalStampOptions {
|
|
1835
|
+
preset?: PdfStandardStampPresetId | string;
|
|
1836
|
+
title?: string;
|
|
1837
|
+
subtitle?: string;
|
|
1838
|
+
signer?: string;
|
|
1839
|
+
dateText?: string;
|
|
1840
|
+
color?: string;
|
|
1841
|
+
shape?: PdfApprovalStampShape;
|
|
1842
|
+
}
|
|
1843
|
+
/**
|
|
1844
|
+
* Generates a crisp, self-contained vector `<svg>` approval stamp suitable for both browser rendering
|
|
1845
|
+
* and direct vector PDF export via `AddPdfElementCommand` (`PdfElementType.SVG` or `PdfElementType.STAMP`).
|
|
1846
|
+
*/
|
|
1847
|
+
declare function buildPdfApprovalStampSvg(options: IBuildPdfApprovalStampOptions): string;
|
|
1848
|
+
interface ISvgTextDrawDescriptor {
|
|
1849
|
+
text: string;
|
|
1850
|
+
leftPt: number;
|
|
1851
|
+
topPt: number;
|
|
1852
|
+
widthPt: number;
|
|
1853
|
+
heightPt: number;
|
|
1854
|
+
fontSizePt: number;
|
|
1855
|
+
bold: boolean;
|
|
1856
|
+
color: string;
|
|
1857
|
+
align: 'left' | 'center' | 'right';
|
|
1858
|
+
}
|
|
1859
|
+
/**
|
|
1860
|
+
* Extracts positioned `<text>` labels from a stamp/diagram `<svg>` scaled to `(boxWidthPt, boxHeightPt)`
|
|
1861
|
+
* so `exportPdfBytes` can emit crisp PDF text alongside vector SVG shapes.
|
|
1862
|
+
*/
|
|
1863
|
+
declare function extractSvgTextDescriptors(svgXml: string, boxWidthPt: number, boxHeightPt: number): ISvgTextDrawDescriptor[];
|
|
1864
|
+
/**
|
|
1865
|
+
* Builds a ready-to-insert vector `SVG` stamp element payload for `AddPdfElementCommand`.
|
|
1866
|
+
*/
|
|
1867
|
+
declare function createPdfApprovalStampSvgElement(options: IBuildPdfApprovalStampOptions & {
|
|
1868
|
+
left?: number;
|
|
1869
|
+
top?: number;
|
|
1870
|
+
angle?: number;
|
|
1871
|
+
}): Partial<IPdfSvgElement>;
|
|
1872
|
+
/**
|
|
1873
|
+
* Builds a `PdfElementType.STAMP` element enriched with dynamic SVG stamp vector content.
|
|
1874
|
+
*/
|
|
1875
|
+
declare function createPdfApprovalStampElement(options: IBuildPdfApprovalStampOptions & {
|
|
1876
|
+
left?: number;
|
|
1877
|
+
top?: number;
|
|
1878
|
+
angle?: number;
|
|
1879
|
+
}): Partial<IPdfStampElement>;
|
|
1880
|
+
|
|
1738
1881
|
interface IPdfImportWarning {
|
|
1739
1882
|
code: string;
|
|
1740
1883
|
message: string;
|
|
@@ -2142,6 +2285,7 @@ interface IPdfSelectionService {
|
|
|
2142
2285
|
readonly inkColor$: Observable<string>;
|
|
2143
2286
|
readonly viewportRatio$: Observable<IPdfViewportRatio>;
|
|
2144
2287
|
readonly previewOpen$: Observable<boolean>;
|
|
2288
|
+
readonly splitModalOpen$: Observable<boolean>;
|
|
2145
2289
|
readonly findReplaceOpen$: Observable<boolean>;
|
|
2146
2290
|
readonly searchHighlight$: Observable<IPdfSearchHighlight | null>;
|
|
2147
2291
|
readonly scrollTarget$: Observable<IPdfScrollTarget | null>;
|
|
@@ -2177,6 +2321,8 @@ interface IPdfSelectionService {
|
|
|
2177
2321
|
setInkColor(color: string): void;
|
|
2178
2322
|
setViewportRatio(ratio: IPdfViewportRatio): void;
|
|
2179
2323
|
setPreviewOpen(open: boolean): void;
|
|
2324
|
+
getSplitModalOpen(): boolean;
|
|
2325
|
+
setSplitModalOpen(open: boolean): void;
|
|
2180
2326
|
getFindReplaceOpen(): boolean;
|
|
2181
2327
|
setFindReplaceOpen(open: boolean): void;
|
|
2182
2328
|
getSearchHighlight(): IPdfSearchHighlight | null;
|
|
@@ -2224,6 +2370,8 @@ declare class PdfSelectionService extends Disposable implements IPdfSelectionSer
|
|
|
2224
2370
|
readonly viewportRatio$: Observable<IPdfViewportRatio>;
|
|
2225
2371
|
private readonly _previewOpen$;
|
|
2226
2372
|
readonly previewOpen$: Observable<boolean>;
|
|
2373
|
+
private readonly _splitModalOpen$;
|
|
2374
|
+
readonly splitModalOpen$: Observable<boolean>;
|
|
2227
2375
|
private readonly _findReplaceOpen$;
|
|
2228
2376
|
readonly findReplaceOpen$: Observable<boolean>;
|
|
2229
2377
|
private readonly _searchHighlight$;
|
|
@@ -2265,6 +2413,8 @@ declare class PdfSelectionService extends Disposable implements IPdfSelectionSer
|
|
|
2265
2413
|
setInkColor(color: string): void;
|
|
2266
2414
|
setViewportRatio(ratio: IPdfViewportRatio): void;
|
|
2267
2415
|
setPreviewOpen(open: boolean): void;
|
|
2416
|
+
getSplitModalOpen(): boolean;
|
|
2417
|
+
setSplitModalOpen(open: boolean): void;
|
|
2268
2418
|
getFindReplaceOpen(): boolean;
|
|
2269
2419
|
setFindReplaceOpen(open: boolean): void;
|
|
2270
2420
|
getSearchHighlight(): IPdfSearchHighlight | null;
|
|
@@ -2281,4 +2431,4 @@ declare class PdfSelectionService extends Disposable implements IPdfSelectionSer
|
|
|
2281
2431
|
getVersionSnapshot(unitId: string, versionId: string): IPdfVersionSnapshot | null;
|
|
2282
2432
|
}
|
|
2283
2433
|
|
|
2284
|
-
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 IPdfBrowserFidelityExpectationEntry, type IPdfBrowserFidelityExpectationSuite, type IPdfBrowserFidelityExpectedOutcome, type IPdfBrowserFidelityRenderScenario, type IPdfBrowserFidelitySampleSet, type IPdfBrowserFidelityStrictErrorExpectation, IPdfCircleMarkElement, type IPdfComparisonResult, IPdfCropBox, IPdfDocument, IPdfDocumentData, type IPdfDocxDocumentSnapshot, type IPdfElementDiffItem, type IPdfEncryptionInspection, type IPdfExportContext, IPdfExportOptions, type IPdfExportUnifiedOptions, type IPdfExportedHookParams, type IPdfFormFieldIssue, type IPdfFormValidationResult, IPdfHeaderFooterConfig, type IPdfImportBytesOptions, type IPdfImportContext, type IPdfImportOptions, 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, type IPdfScrollTarget, type IPdfSearchHighlight, IPdfSecurityConfig, IPdfSecurityPermissionFlags, 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 ISetPdfSecurityConfigCommandParams, 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, PDF_PASSWORD_PADDING, PDF_S1_S7_FIDELITY_EXPECTATIONS, type PdfAlignMode, PdfBatesPosition, type PdfBrowserFidelitySampleKey, 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, PdfSecurityError, type PdfSecurityErrorCode, PdfSelectionService, PdfUnitModel, RemovePdfElementsMutation, RemovePdfLayerCommand, RemovePdfPageCommand, RemovePdfPageMutation, ReorderPdfElementOrderMutation, ReorderPdfLayerCommand, ReorderPdfPagesCommand, ReorderPdfPagesMutation, ReplacePdfNativeTextCommand, ReplacePdfSnapshotCommand, RestorePdfVersionCommand, RotatePdfPageCommand, SavePdfVersionCommand, SetPdfAttachmentsCommand, SetPdfBatesConfigCommand, SetPdfBookmarksCommand, SetPdfHeaderFooterConfigCommand, SetPdfNativeTextSpansCommand, SetPdfPageCropBoxCommand, SetPdfPageSizeCommand, SetPdfSecurityConfigCommand, SetPdfWatermarkConfigCommand, type SignatureQuadraticSegment, type SilentPrintDriverType, type SvgMat2D, UNIVER_PDFS_PLUGIN_NAME, UniverPdfsPlugin, UpdatePdfElementsCommand, UpdatePdfElementsMutation, UpdatePdfLayerCommand, UpdatePdfPageMutation, UpdatePdfPagePropsCommand, UpdatePdfUnitPropsCommand, UpdatePdfUnitPropsMutation, applyOcrToUnitPage, applyPdfSecurityToDocument, autoDetectFormFieldsOnPage, buildObjectEncryptionKey, buildOverlayImportCandidateSnapshot, buildPdfTemplateFromOcrFields, bytesToHex, canonicalJsonStringify, cmykToRgb, comparePdfBytes, comparePdfUnits, computeBarcodeLayoutBox, computeCircleMarkBezierEllipse, computeDynamicLayoutSplitRanges, computeElementCenterTransformMatrix, computeExifTransformMatrix, computeExpandedTextHeightMm, computeExpandedTextHeightPt, computeFileEncryptionKeyFromPadded, computeImageFitPlacement, computeOwnerPasswordValue, computePasteCascadeOffset, computePdfPayloadDigest, computeSmartSnapWithEqualGap, computeUserPasswordValue, convertImagesToPdfBytes, convertMarkdownToPdfBytes, convertMarkdownToPdfUnit, convertPdfBytesToCsv, convertPdfBytesToDocxBytes, convertPdfToSheetStructure, convertPdfToWordStructure, convertPdfUnitToCsv, createDefaultElement, createDefaultPdfUnitData, createHttpSilentPrintAdapter, createPdfAbortError, createPdfBrowserFidelityExpectations, createPdfBrowserFidelitySamples, decodePdfPermissionFlags, decryptPdfBytes, detectFormFieldsFromPageSpans, drawVectorSvgOnPdfPage, encodeBarcodeByFormat, encodeCodabar, encodeCode128, encodeCode39, encodeDataMatrix, encodeEan13, encodeEan8, encodeGs1128, encodeGs1DataMatrix, encodeItf14, encodeJapanPost, encodeNw7, encodePdf417, encodePdfPermissionFlags, encodeQrCodeMatrix, encodeUpcA, encodeUpcE, encryptPdfBytes, evaluatePdfFormExpression, evaluateSafeTemplateExpression, exportFormDataToFdf, exportFormDataToXfdf, exportPdfToDocxSnapshot, exportPdfToWorkbookSnapshot, exportPdfWithTarget, exportSignedPdfWithAuditSeal, extractAttachmentsFromPdfBytes, extractNativeTextSpansFromPdfBytes, formatGs1HumanReadable, formatPdfDateTimeValue, generatePdfTemplateByPrompt, getDefaultDateTimeFormat, getRegisteredOcrAdapter, hexToBytes, importAcroFormPdfToUnit, importFormDataFromFdf, importFormDataFromXfdf, importPdfBytesToUnit, importPdfSource, insertPdfPagesBytes, inspectPdfBytePageSizes, inspectPdfEncryption, isAspectRatioLockedBarcodeType, isCircleMarkChecked, isExifDimensionsSwapped, isPdfSecurityActive, mayBeJson, md5Bytes, mergePdfBytes, movePdfPageBytes, normalizeBarcodeFormatType, normalizePdfImportWarnings, optimizePdfUnit, organizePdfBytes, padPdfPassword, paginatePdfListItems, parseGs1ApplicationIdentifiers, parseInlineMarkdownToSpans, parseObjectPositionRatios, parsePdfColorWithAlpha, parsePdfContentStreamTextOps, parsePdfPageRange, parseSafeKeyValueRecord, parseSvgToVectorCommands, parseSvgTransformAttr, rc4Bytes, 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, verifyAndDecryptPdfBytes, verifyPdfAuditSeal as verifyPdfAuditDigest, verifyPdfAuditSeal, verifyPdfUnitSignature, visitTemplateVariables, wrapPdfTextLines };
|
|
2434
|
+
export { ASPECT_RATIO_LOCKED_BARCODE_TYPES, AddPdfAnnotationReplyCommand, AddPdfElementCommand, AddPdfElementMutation, AddPdfLayerCommand, AddPdfPageCommand, AddPdfPageMutation, AlignSelectedPdfElementsCommand, type AspectRatioLockedBarcodeType, AssignPdfElementLayerCommand, BARCODE_TYPES, CIRCLE_MARK_BEZIER_KAPPA, DeletePdfAnnotationReplyCommand, DeleteSelectedPdfElementsCommand, DistributeSelectedPdfElementsCommand, DuplicateSelectedPdfElementsCommand, FindAndReplacePdfTextCommand, type IAddPdfAnnotationReplyCommandParams, type IAddPdfElementCommandParams, type IAddPdfLayerCommandParams, type IAssignPdfElementLayerCommandParams, type IBarcodeBarRun, type IBarcodeLayoutBox, type IBeforePdfExportHookParams, type IBeforePdfPrintHookParams, type IBuildPdfApprovalStampOptions, type ICircleMarkBezierEllipse, type IComputeSmartSnapParams, type IConvertImagesToPdfOptions, type IConvertMarkdownToPdfOptions, type IDataMatrixEncodedResult, type IDeletePdfAnnotationReplyCommandParams, 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, IPdfAnnotationReply, IPdfAttachment, type IPdfAuditSealOptions, type IPdfAuditVerificationResult, type IPdfBatchAction, type IPdfBatchPipelineFileInput, type IPdfBatchPipelineItemResult, IPdfBatesConfig, IPdfBookmarkItem, type IPdfBrowserFidelityExpectationEntry, type IPdfBrowserFidelityExpectationSuite, type IPdfBrowserFidelityExpectedOutcome, type IPdfBrowserFidelityRenderScenario, type IPdfBrowserFidelitySampleSet, type IPdfBrowserFidelityStrictErrorExpectation, IPdfCircleMarkElement, type IPdfComparisonResult, IPdfCropBox, IPdfCropBoxInput, IPdfDocument, IPdfDocumentData, type IPdfDocxDocumentSnapshot, type IPdfElementDiffItem, type IPdfEncryptionInspection, type IPdfExportContext, IPdfExportOptions, type IPdfExportUnifiedOptions, type IPdfExportedHookParams, type IPdfFormFieldIssue, type IPdfFormValidationResult, IPdfHeaderFooterConfig, type IPdfImportBytesOptions, type IPdfImportContext, type IPdfImportOptions, 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 IPdfParseRangeSpecOptions, type IPdfRenderedPageImage, IPdfResourceBinding, IPdfRichTextSpan, type IPdfSanitizeOptions, type IPdfSaveContext, type IPdfScrollTarget, type IPdfSearchHighlight, IPdfSecurityConfig, IPdfSecurityPermissionFlags, IPdfSecurityPermissions, IPdfSelectionService, type IPdfSelectionState, type IPdfSheetConvertedStructure, type IPdfSheetConvertedTable, IPdfSignatureEnvelope, type IPdfSignedAuditResult, IPdfSignerInfo, IPdfSourceDocumentRef, type IPdfSplitBytesPart, type IPdfSplitUnitPart, IPdfStampElement, type IPdfStandardStampPreset, IPdfSvgElement, 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 ISetPdfAnnotationReviewStatusCommandParams, type ISetPdfAttachmentsCommandParams, type ISetPdfBatesConfigCommandParams, type ISetPdfBookmarksCommandParams, type ISetPdfHeaderFooterConfigCommandParams, type ISetPdfNativeTextSpansCommandParams, type ISetPdfPageCropBoxCommandParams, type ISetPdfSecurityConfigCommandParams, type ISetPdfWatermarkConfigCommandParams, type ISilentPrintOptions, type ISilentPrintResult, type ISmartSnapBox, type ISnapGuideLine, type ISvgTextDrawDescriptor, 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, PDF_PASSWORD_PADDING, PDF_S1_S7_FIDELITY_EXPECTATIONS, PDF_STANDARD_STAMP_PRESETS, PDF_STANDARD_STAMP_PRESET_MAP, PPTX_EMU_PER_PT, type PdfAlignMode, PdfAnnotationReviewStatus, type PdfApprovalStampShape, PdfBatesPosition, type PdfBrowserFidelitySampleKey, 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, PdfSecurityError, type PdfSecurityErrorCode, PdfSelectionService, type PdfStandardStampPresetId, PdfUnitModel, RemovePdfElementsMutation, RemovePdfLayerCommand, RemovePdfPageCommand, RemovePdfPageMutation, ReorderPdfElementOrderMutation, ReorderPdfLayerCommand, ReorderPdfPagesCommand, ReorderPdfPagesMutation, ReplacePdfNativeTextCommand, ReplacePdfSnapshotCommand, RestorePdfVersionCommand, RotatePdfPageCommand, SavePdfVersionCommand, SetPdfAnnotationReviewStatusCommand, SetPdfAttachmentsCommand, SetPdfBatesConfigCommand, SetPdfBookmarksCommand, SetPdfHeaderFooterConfigCommand, SetPdfNativeTextSpansCommand, SetPdfPageCropBoxCommand, SetPdfPageSizeCommand, SetPdfSecurityConfigCommand, SetPdfWatermarkConfigCommand, type SignatureQuadraticSegment, type SilentPrintDriverType, type SvgMat2D, UNIVER_PDFS_PLUGIN_NAME, UniverPdfsPlugin, UpdatePdfElementsCommand, UpdatePdfElementsMutation, UpdatePdfLayerCommand, UpdatePdfPageMutation, UpdatePdfPagePropsCommand, UpdatePdfUnitPropsCommand, UpdatePdfUnitPropsMutation, applyOcrToUnitPage, applyPdfSecurityToDocument, autoDetectFormFieldsOnPage, buildObjectEncryptionKey, buildOverlayImportCandidateSnapshot, buildPdfApprovalStampSvg, buildPdfTemplateFromOcrFields, bytesToHex, canonicalJsonStringify, cmykToRgb, comparePdfBytes, comparePdfUnits, computeBarcodeLayoutBox, computeCircleMarkBezierEllipse, computeDynamicLayoutSplitRanges, computeElementCenterTransformMatrix, computeExifTransformMatrix, computeExpandedTextHeightMm, computeExpandedTextHeightPt, computeFileEncryptionKeyFromPadded, computeImageFitPlacement, computeOwnerPasswordValue, computePasteCascadeOffset, computePdfPayloadDigest, computeSmartSnapWithEqualGap, computeUserPasswordValue, convertImagesToPdfBytes, convertMarkdownToPdfBytes, convertMarkdownToPdfUnit, convertPdfBytesToCsv, convertPdfBytesToDocxBytes, convertPdfBytesToPptxBytes, convertPdfToSheetStructure, convertPdfToWordStructure, convertPdfUnitToCsv, convertPdfUnitToPptxBytes, createDefaultElement, createDefaultPdfUnitData, createHttpSilentPrintAdapter, createPdfAbortError, createPdfApprovalStampElement, createPdfApprovalStampSvgElement, createPdfBrowserFidelityExpectations, createPdfBrowserFidelitySamples, decodePdfPermissionFlags, decryptPdfBytes, detectFormFieldsFromPageSpans, drawVectorSvgOnPdfPage, encodeBarcodeByFormat, encodeCodabar, encodeCode128, encodeCode39, encodeDataMatrix, encodeEan13, encodeEan8, encodeGs1128, encodeGs1DataMatrix, encodeItf14, encodeJapanPost, encodeNw7, encodePdf417, encodePdfPermissionFlags, encodeQrCodeMatrix, encodeUpcA, encodeUpcE, encryptPdfBytes, evaluatePdfFormExpression, evaluateSafeTemplateExpression, exportFormDataToFdf, exportFormDataToXfdf, exportPdfToDocxSnapshot, exportPdfToWorkbookSnapshot, exportPdfWithTarget, exportSignedPdfWithAuditSeal, extractAttachmentsFromPdfBytes, extractNativeTextSpansFromPdfBytes, extractSvgTextDescriptors, formatGs1HumanReadable, formatPdfDateTimeValue, formatPdfPageIndicesLabel, generatePdfTemplateByPrompt, getDefaultDateTimeFormat, getPdfStandardStampPreset, getRegisteredOcrAdapter, hexToBytes, importAcroFormPdfToUnit, importFormDataFromFdf, importFormDataFromXfdf, importPdfBytesToUnit, importPdfSource, insertPdfPagesBytes, inspectPdfBytePageSizes, inspectPdfEncryption, isAspectRatioLockedBarcodeType, isCircleMarkChecked, isExifDimensionsSwapped, isPdfSecurityActive, mayBeJson, md5Bytes, mergePdfBytes, movePdfPageBytes, normalizeBarcodeFormatType, normalizePdfImportWarnings, optimizePdfUnit, organizePdfBytes, padPdfPassword, paginatePdfListItems, parseGs1ApplicationIdentifiers, parseInlineMarkdownToSpans, parseObjectPositionRatios, parsePdfColorWithAlpha, parsePdfContentStreamTextOps, parsePdfPageRange, parsePdfPageRangeSpec, parseSafeKeyValueRecord, parseSvgToVectorCommands, parseSvgTransformAttr, ptToPptxEmu, rc4Bytes, 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, splitPdfBytesByRanges, splitPdfUnitByRanges, stripPdfPageNativeTextInRects, svgToDataUri, toHtmlDateTimeInputValue, toPdfLibColor, toggleCircleMarkState, validatePdfFormFields, verifyAndDecryptPdfBytes, verifyPdfAuditSeal as verifyPdfAuditDigest, verifyPdfAuditSeal, verifyPdfUnitSignature, visitTemplateVariables, wrapPdfTextLines };
|
package/lib/types/jsx/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a1 as IJsxAbsoluteProps, aQ as IPdfJsxNode, a2 as IJsxBarcodeProps, a3 as IJsxBoxProps, a5 as IJsxDocumentProps, af as IJsxShapeProps, a6 as IJsxHeaderFooterProps, a7 as IJsxImageProps, a8 as IJsxLineProps, a9 as IJsxListProps, aa as IJsxMultiVariableTextProps, ac as IJsxPageProps, ab as IJsxPageBreakProps, ad as IJsxQrCodeProps, ae as IJsxRowProps, ag as IJsxSpacerProps, ah as IJsxStackProps, ai as IJsxStaticProps, aj as IJsxSvgProps, al as IJsxTableProps, am as IJsxTextProps, bD as PdfJsxComponent, $ as IExportJsxToPdfOptions, bi as IRenderJsxOptions, I as IPdfUnitData, bh as IPdfmeTemplate } from '../jsx-dev-runtime-B1jMa7VW.js';
|
|
2
|
+
export { V as Fragment, a4 as IJsxContainerStyleProps, ak as IJsxTableColumnSpec, bn as JSX, bp as PDF_JSX_ELEMENT_SYMBOL, bq as PDF_JSX_FRAGMENT_SYMBOL, bC as PdfJsxChild, bE as PdfJsxIntrinsicKind, bF as PdfJsxPaddingSpec, c3 as createPdfJsxNode, c9 as evaluatePdfJsxElement, cg as extractJsxTextContent, cj as flattenJsxChildrenToNodes, cs as isPdfJsxNode, ct as jsx, cu as jsxDEV, cv as jsxs, cF as resolvePaddingMm } from '../jsx-dev-runtime-B1jMa7VW.js';
|
|
3
3
|
import '@univerjs/core';
|
|
4
4
|
|
|
5
5
|
declare function Document(props?: IJsxDocumentProps): IPdfJsxNode<IJsxDocumentProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { V as Fragment, bn as JSX, ct as jsx, cu as jsxDEV, cv as jsxs } from '../jsx-dev-runtime-B1jMa7VW.js';
|
|
2
2
|
import '@univerjs/core';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { V as Fragment, bn as JSX, ct as jsx, cu as jsxDEV, cv as jsxs } from '../jsx-dev-runtime-B1jMa7VW.js';
|
|
2
2
|
import '@univerjs/core';
|
|
@@ -92,7 +92,36 @@ interface IPdfCropBox {
|
|
|
92
92
|
top: number;
|
|
93
93
|
width: number;
|
|
94
94
|
height: number;
|
|
95
|
+
leftPt?: number;
|
|
96
|
+
topPt?: number;
|
|
97
|
+
widthPt?: number;
|
|
98
|
+
heightPt?: number;
|
|
95
99
|
}
|
|
100
|
+
type IPdfCropBoxInput = {
|
|
101
|
+
left: number;
|
|
102
|
+
top: number;
|
|
103
|
+
width: number;
|
|
104
|
+
height: number;
|
|
105
|
+
leftPt?: number;
|
|
106
|
+
topPt?: number;
|
|
107
|
+
widthPt?: number;
|
|
108
|
+
heightPt?: number;
|
|
109
|
+
} | {
|
|
110
|
+
leftPt: number;
|
|
111
|
+
topPt: number;
|
|
112
|
+
widthPt: number;
|
|
113
|
+
heightPt: number;
|
|
114
|
+
left?: number;
|
|
115
|
+
top?: number;
|
|
116
|
+
width?: number;
|
|
117
|
+
height?: number;
|
|
118
|
+
};
|
|
119
|
+
declare function resolvePdfCropBoxPt(cropBox?: Partial<IPdfCropBox> | null): {
|
|
120
|
+
left: number;
|
|
121
|
+
top: number;
|
|
122
|
+
width: number;
|
|
123
|
+
height: number;
|
|
124
|
+
} | null;
|
|
96
125
|
interface IPdfPage {
|
|
97
126
|
id: string;
|
|
98
127
|
title?: string;
|
|
@@ -140,7 +169,7 @@ declare enum PdfElementType {
|
|
|
140
169
|
ANNOTATION = "annotation",
|
|
141
170
|
REDACTION = "redaction"
|
|
142
171
|
}
|
|
143
|
-
type PdfInteractionMode = 'select' | 'pan' | 'ink' | 'form';
|
|
172
|
+
type PdfInteractionMode = 'select' | 'pan' | 'ink' | 'form' | 'crop';
|
|
144
173
|
type PdfBarcodeFormat = 'CODE128' | 'EAN13' | 'EAN8' | 'UPC' | 'UPCA' | 'UPCE' | 'CODE39' | 'ITF14' | 'NW7' | 'CODABAR' | 'JAPANPOST' | 'GS1_128' | 'DATAMATRIX' | 'GS1_DATAMATRIX' | 'GS1DATAMATRIX' | 'PDF417' | 'QRCODE' | 'qrcode' | 'japanpost' | 'ean13' | 'ean8' | 'code39' | 'code128' | 'nw7' | 'codabar' | 'itf14' | 'upca' | 'upce' | 'upc' | 'gs1datamatrix' | 'gs1-128' | 'gs1_128' | 'datamatrix' | 'pdf417';
|
|
145
174
|
type PdfTextOverflowMode = 'clip' | 'shrink' | 'expand';
|
|
146
175
|
type PdfDateTimeKind = 'date' | 'time' | 'dateTime';
|
|
@@ -525,9 +554,13 @@ interface IPdfListElement extends IPdfPageElementBase {
|
|
|
525
554
|
}
|
|
526
555
|
interface IPdfStampElement extends IPdfPageElementBase {
|
|
527
556
|
type: PdfElementType.STAMP;
|
|
528
|
-
stampShape?: 'oval' | 'circle' | 'rect';
|
|
557
|
+
stampShape?: 'oval' | 'circle' | 'rect' | 'pill';
|
|
558
|
+
preset?: string;
|
|
529
559
|
primaryText: string;
|
|
530
560
|
secondaryText?: string;
|
|
561
|
+
signer?: string;
|
|
562
|
+
dateText?: string;
|
|
563
|
+
svgContent?: string;
|
|
531
564
|
color?: string;
|
|
532
565
|
}
|
|
533
566
|
interface IPdfInkPoint {
|
|
@@ -550,13 +583,24 @@ declare const PdfAnnotationType: {
|
|
|
550
583
|
readonly STICKY_NOTE: "stickyNote";
|
|
551
584
|
};
|
|
552
585
|
type PdfAnnotationType = (typeof PdfAnnotationType)[keyof typeof PdfAnnotationType];
|
|
553
|
-
type
|
|
586
|
+
type PdfAnnotationReviewStatus = 'open' | 'accepted' | 'rejected' | 'completed' | 'cancelled';
|
|
587
|
+
type PdfAnnotationStatus = PdfAnnotationReviewStatus | 'resolved';
|
|
554
588
|
interface IPdfAnnotationReply {
|
|
555
589
|
id: string;
|
|
556
590
|
author: string;
|
|
557
591
|
content: string;
|
|
558
592
|
createdAt: string;
|
|
559
593
|
}
|
|
594
|
+
interface IPdfCommentThread {
|
|
595
|
+
id: string;
|
|
596
|
+
pageId?: string;
|
|
597
|
+
elementId?: string;
|
|
598
|
+
author: string;
|
|
599
|
+
content: string;
|
|
600
|
+
createdAt?: string;
|
|
601
|
+
reviewStatus?: PdfAnnotationReviewStatus;
|
|
602
|
+
replies?: IPdfAnnotationReply[];
|
|
603
|
+
}
|
|
560
604
|
interface IPdfAnnotationElement extends IPdfPageElementBase {
|
|
561
605
|
type: PdfElementType.ANNOTATION;
|
|
562
606
|
annotationType: PdfAnnotationType;
|
|
@@ -565,6 +609,7 @@ interface IPdfAnnotationElement extends IPdfPageElementBase {
|
|
|
565
609
|
author?: string;
|
|
566
610
|
comment?: string;
|
|
567
611
|
status?: PdfAnnotationStatus;
|
|
612
|
+
reviewStatus?: PdfAnnotationReviewStatus;
|
|
568
613
|
replies?: IPdfAnnotationReply[];
|
|
569
614
|
}
|
|
570
615
|
interface IPdfSignatureElement extends IPdfPageElementBase {
|
|
@@ -764,6 +809,8 @@ interface IPdfUnitMetadata {
|
|
|
764
809
|
pdfACompliant?: boolean;
|
|
765
810
|
/** Emit PDF/UA `/MarkInfo << /Marked true >>` & `/StructTreeRoot` tagged accessibility tree */
|
|
766
811
|
accessibilityTagged?: boolean;
|
|
812
|
+
/** Optional threaded review comments */
|
|
813
|
+
commentThreads?: IPdfCommentThread[];
|
|
767
814
|
/** True after `sanitizePdfUnit` strips hidden metadata */
|
|
768
815
|
sanitized?: boolean;
|
|
769
816
|
[key: string]: unknown;
|
|
@@ -1767,4 +1814,4 @@ declare namespace JSX {
|
|
|
1767
1814
|
}
|
|
1768
1815
|
}
|
|
1769
1816
|
|
|
1770
|
-
export { type
|
|
1817
|
+
export { type IExportJsxToPdfOptions as $, type IPdfCircleMarkElement as A, type IPdfListElement as B, type IPdfRichTextSpan as C, type PdfColorSpaceType as D, type IPdfExportOptions as E, PDF_PAGE_PRESETS as F, type PdfBatesPosition as G, type IPdfSignerInfo as H, type IPdfUnitData as I, type IPdfSecurityPermissionFlags as J, type IPdfStampElement as K, type IPdfSvgElement as L, type IPdfjsAssetsConfig as M, type PdfDisplayUnit as N, type PdfInteractionMode as O, PdfElementType as P, type IPdfVersionSnapshot as Q, DEFAULT_PDF_CJK_FONT_FAMILY as R, DEFAULT_PDF_CJK_FONT_FILES as S, DEFAULT_PDF_CJK_FONT_PACKAGE as T, DEFAULT_PDF_CJK_FONT_VERSION as U, Fragment as V, type ICjkDetectionSummary as W, type IComputeDynamicFontSizeParams as X, type IDetectedPaperPreset as Y, type IDiagnosePdfFontsOptions as Z, type IDiagnosticGridOverlayOptions as _, type IPdfDocument as a, type IPdfRenderWarning as a$, type IInputsCjkReport as a0, type IJsxAbsoluteProps as a1, type IJsxBarcodeProps as a2, type IJsxBoxProps as a3, type IJsxContainerStyleProps as a4, type IJsxDocumentProps as a5, type IJsxHeaderFooterProps as a6, type IJsxImageProps as a7, type IJsxLineProps as a8, type IJsxListProps as a9, type IPdfElementBase as aA, type IPdfElementTransform as aB, type IPdfEllipseElement as aC, type IPdfExportCapabilitiesReport as aD, type IPdfFailedFontEntry as aE, type IPdfFieldContractHint as aF, type IPdfFontDiagnosisReport as aG, type IPdfFontDiagnosticIssue as aH, type IPdfFontDoctorInputEntry as aI, type IPdfFontSource as aJ, type IPdfImageCrop as aK, type IPdfImageElement as aL, type IPdfInkElement as aM, type IPdfInkPoint as aN, type IPdfInputContractValidationResult as aO, type IPdfInputContractViolation as aP, type IPdfJsxNode as aQ, type IPdfLayerConfig as aR, type IPdfLineElement as aS, type IPdfMissingGlyphItem as aT, type IPdfPageElementBase as aU, type IPdfParagraphBlock as aV, type IPdfPolygonElement as aW, type IPdfPolygonPoint as aX, type IPdfQrCodeElement as aY, type IPdfRadioGroupElement as aZ, type IPdfRedactionElement as a_, type IJsxMultiVariableTextProps as aa, type IJsxPageBreakProps as ab, type IJsxPageProps as ac, type IJsxQrCodeProps as ad, type IJsxRowProps as ae, type IJsxShapeProps as af, type IJsxSpacerProps as ag, type IJsxStackProps as ah, type IJsxStaticProps as ai, type IJsxSvgProps as aj, type IJsxTableColumnSpec as ak, type IJsxTableProps as al, type IJsxTextProps as am, type IPdfAnnotationElement as an, type IPdfBarcodeElement as ao, type IPdfBrowserRenderOptions as ap, type IPdfCheckboxElement as aq, type IPdfCjkFontSourcesOptions as ar, type IPdfCommentThread as as, type IPdfDatasetField as at, type IPdfDatasetSchema as au, type IPdfDateTimeElement as av, type IPdfDocumentMetadata as aw, type IPdfDurableEditState as ax, type IPdfDynamicFontSizeConfig as ay, type IPdfElement as az, type IPdfPage as b, computeDynamicFontSize as b$, type IPdfSchemaDiagnosticIssue as b0, type IPdfSelectElement as b1, type IPdfShapeElement as b2, type IPdfSignatureElement as b3, type IPdfTableBorderWidths as b4, type IPdfTableCellStyle as b5, type IPdfTableColumn as b6, type IPdfTableElement as b7, type IPdfTableMerge as b8, type IPdfTablePageChunk as b9, type PdfFontFallbackPolicy as bA, PdfImageSourceType as bB, type PdfJsxChild as bC, type PdfJsxComponent as bD, type PdfJsxIntrinsicKind as bE, type PdfJsxPaddingSpec as bF, PdfListKind as bG, PdfListPresetId as bH, type PdfMissingGlyphPolicy as bI, type PdfPaperPresetName as bJ, PdfRenderError as bK, PdfTableBorderStyle as bL, PdfTableCellVerticalAlign as bM, type PdfTablePaginationMode as bN, PdfTextAnchor as bO, type PdfTextFormatMode as bP, type PdfTextOverflowMode as bQ, type PdfZebraParityMode as bR, UNIVER_PDF_SCHEMA as bS, UNIVER_PDF_SCHEMA_VERSION as bT, buildMinimalTestTrueTypeFont as bU, calculatePdfTableRowCapacity as bV, clearPdfFontUrlCache as bW, collectMissingGlyphsFromPdfUnit as bX, collectPdfInputContractHints as bY, collectUsedCodePointsFromPdfUnit as bZ, computeAutoFitFontSize as b_, type IPdfTablePaginationOptions as ba, type IPdfTableRowCapacity as bb, type IPdfTableThemePreset as bc, type IPdfTemplateSchemaValidationResult as bd, type IPdfVariableValidationResult as be, type IPdfmeBlankPdf as bf, type IPdfmeSchemaItem as bg, type IPdfmeTemplate as bh, type IRenderJsxOptions as bi, type ISubsetFontResult as bj, type ITemplateCjkReport as bk, type ITrueTypeFontInspection as bl, type IValidatePdfTemplateSchemaOptions as bm, JSX as bn, PAGE_SIZE_PRESETS_MM as bo, PDF_JSX_ELEMENT_SYMBOL as bp, PDF_JSX_FRAGMENT_SYMBOL as bq, PDF_TABLE_THEME_PRESETS as br, PT_PER_MM as bs, type PdfAnnotationStatus as bt, PdfAnnotationType as bu, type PdfBarcodeFormat as bv, type PdfCjkScriptBlock as bw, type PdfCjkTextMode as bx, type PdfDynamicFontFitMode as by, type PdfFontFailureKind as bz, type IPdfPageSize as c, computeFontUrlCacheKey as c0, computePdfTableSummaryRow as c1, createPdfCjkFontSources as c2, createPdfJsxNode as c3, detectCJKCharacters as c4, detectCJKInPdfInputs as c5, detectCJKInPdfTemplate as c6, detectPaperSizePreset as c7, diagnosePdfFonts as c8, evaluatePdfJsxElement as c9, paginatePdfTableRows as cA, ptToMm as cB, renderBarcodeDataUrl as cC, renderQrCodeDataUrl as cD, resolveDynamicTableRawRows as cE, resolvePaddingMm as cF, resolvePageSizeMm as cG, resolvePdfCropBoxPt as cH, resolvePolygonNormalizedPoints as cI, resolveTemplateString as cJ, subsetTrueTypeFont as cK, toPdfmeTemplate as cL, validatePdfInputContract as cM, validatePdfTemplateSchema as cN, validatePdfTemplateVariables as cO, wrapMixedCjkAndLatinLines as cP, exportBatchPdfBytes as ca, exportCalibrationGridPdfBytes as cb, exportPdfBytes as cc, exportPdfUnitToBytes as cd, exportToPdfmeTemplate as ce, extractAcroFormValuesFromPdfBytes as cf, extractJsxTextContent as cg, extractPdfFormValues as ch, fillPdfFormValues as ci, flattenJsxChildrenToNodes as cj, formatBatesNumber as ck, formatPdfTableCell as cl, fromPdfmeTemplate as cm, getTrueTypeMappedCodePoints as cn, importFromPdfmeTemplate as co, inspectPdfExportCapabilities as cp, inspectTrueTypeFont as cq, isFontUrlSafeToFetch as cr, isPdfJsxNode as cs, jsx as ct, jsxDEV as cu, jsxs as cv, mmToPt as cw, normalizeBarcodePayloadForFormat as cx, normalizeImageCrop as cy, overlayDiagnosticGridOnPdfBytes as cz, type IPdfPageElement as d, type IPdfLayer as e, type IPdfSourceDocumentRef as f, type IPdfResourceBinding as g, type IPdfUnitMetadata as h, type IPdfBookmarkItem as i, type IPdfAttachment as j, type IPdfSecurityConfig as k, type IPdfSecurityPermissions as l, type IPdfSignatureEnvelope as m, type IPdfAnnotationReply as n, type IPdfTextStyle as o, type PdfPageRotation as p, type PdfAnnotationReviewStatus as q, type IPdfBatesConfig as r, type IPdfHeaderFooterConfig as s, type IPdfNativeTextSpan as t, type IPdfCropBox as u, type IPdfCropBoxInput as v, type IPdfWatermarkConfig as w, type IPdfDocumentData as x, type IPdfTextElement as y, type PdfDateTimeKind as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yudaocode/univer-pdfs",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.219",
|
|
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",
|