@yudaocode/univer-pdfs 0.0.0-stage → 1.6.205

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,45 @@
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';
3
+ import '@univerjs/core';
4
+
5
+ declare function Document(props?: IJsxDocumentProps): IPdfJsxNode<IJsxDocumentProps>;
6
+ declare function Page(props?: IJsxPageProps): IPdfJsxNode<IJsxPageProps>;
7
+ declare function Header(props?: IJsxHeaderFooterProps): IPdfJsxNode<IJsxHeaderFooterProps>;
8
+ declare function Footer(props?: IJsxHeaderFooterProps): IPdfJsxNode<IJsxHeaderFooterProps>;
9
+ declare function Static(props?: IJsxStaticProps): IPdfJsxNode<IJsxStaticProps>;
10
+ declare function Absolute(props: IJsxAbsoluteProps): IPdfJsxNode<IJsxAbsoluteProps>;
11
+ declare function Stack(props?: IJsxStackProps): IPdfJsxNode<IJsxStackProps>;
12
+ declare function Row(props?: IJsxRowProps): IPdfJsxNode<IJsxRowProps>;
13
+ declare function Box(props?: IJsxBoxProps): IPdfJsxNode<IJsxBoxProps>;
14
+ declare function Spacer(props?: IJsxSpacerProps): IPdfJsxNode<IJsxSpacerProps>;
15
+ declare function PageBreak(props?: IJsxPageBreakProps): IPdfJsxNode<IJsxPageBreakProps>;
16
+ declare function Text(props?: IJsxTextProps): IPdfJsxNode<IJsxTextProps>;
17
+ declare function MultiVariableText(props?: IJsxMultiVariableTextProps): IPdfJsxNode<IJsxMultiVariableTextProps>;
18
+ declare function Image(props?: IJsxImageProps): IPdfJsxNode<IJsxImageProps>;
19
+ declare function Svg(props?: IJsxSvgProps): IPdfJsxNode<IJsxSvgProps>;
20
+ declare function Rectangle(props?: IJsxShapeProps): IPdfJsxNode<IJsxShapeProps>;
21
+ declare function Ellipse(props?: IJsxShapeProps): IPdfJsxNode<IJsxShapeProps>;
22
+ declare function Line(props?: IJsxLineProps): IPdfJsxNode<IJsxLineProps>;
23
+ declare function List(props?: IJsxListProps): IPdfJsxNode<IJsxListProps>;
24
+ declare function Table(props?: IJsxTableProps): IPdfJsxNode<IJsxTableProps>;
25
+ declare function Barcode(props?: IJsxBarcodeProps): IPdfJsxNode<IJsxBarcodeProps>;
26
+ declare function QrCode(props?: IJsxQrCodeProps): IPdfJsxNode<IJsxQrCodeProps>;
27
+
28
+ /**
29
+ * Compiles a zero-React PDF JSX tree (`<Document><Page>...</Page></Document>`) into a Univer `IPdfUnitData` snapshot,
30
+ * computing CJK/Latin wrapped heights, `<Row>` flex widths, `<Box>`/`<Stack>`/`<Row>` background & border `SHAPE`s,
31
+ * `<Header>`/`<Footer>`/`<Static>` repetition across pages, and `<PageBreak />` ancestor container splitting.
32
+ */
33
+ declare function renderJsxToPdfUnit(root: IPdfJsxNode | PdfJsxComponent, options?: IRenderJsxOptions): IPdfUnitData;
34
+ /**
35
+ * Compiles a PDF JSX tree into a `pdfme` v5 `IPdfmeTemplate` (lifting `<Header>` / `<Footer>` / `<Static>`
36
+ * elements into `BlankPdf.staticSchema` and preserving `BlankPdf.padding` in millimeters).
37
+ */
38
+ declare function renderJsxToPdfmeTemplate(root: IPdfJsxNode | PdfJsxComponent, options?: IRenderJsxOptions): IPdfmeTemplate;
39
+ /**
40
+ * Compiles a PDF JSX tree and renders it directly into PDF bytes (`Uint8Array`),
41
+ * automatically enabling `'cid-vector'` CJK rendering when CJK text is detected and no custom `cjkTextMode` was specified.
42
+ */
43
+ declare function exportJsxToPdfBytes(root: IPdfJsxNode | PdfJsxComponent, runtimeData?: Record<string, unknown>, options?: IExportJsxToPdfOptions): Promise<Uint8Array>;
44
+
45
+ export { Absolute, Barcode, Box, Document, Ellipse, Footer, Header, IExportJsxToPdfOptions, IJsxAbsoluteProps, IJsxBarcodeProps, IJsxBoxProps, IJsxDocumentProps, IJsxHeaderFooterProps, IJsxImageProps, IJsxLineProps, IJsxListProps, IJsxMultiVariableTextProps, IJsxPageBreakProps, IJsxPageProps, IJsxQrCodeProps, IJsxRowProps, IJsxShapeProps, IJsxSpacerProps, IJsxStackProps, IJsxStaticProps, IJsxSvgProps, IJsxTableProps, IJsxTextProps, IPdfJsxNode, IRenderJsxOptions, Image, Line, List, MultiVariableText, Page, PageBreak, PdfJsxComponent, QrCode, Rectangle, Row, Spacer, Stack, Static, Svg, Table, Text, exportJsxToPdfBytes, renderJsxToPdfUnit, renderJsxToPdfmeTemplate };
@@ -0,0 +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';
2
+ import '@univerjs/core';
@@ -0,0 +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';
2
+ import '@univerjs/core';