documents.js 1.32.0 → 1.33.1
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 +136 -30
- package/dist/index.cjs +134 -1246
- package/dist/index.d.cts +141 -53
- package/dist/index.d.ts +141 -53
- package/dist/index.js +74 -1222
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import { Attribute, AttributeSchema, BinaryPart, BinaryPartSchema, Comment, CommentSchema, CompactAttrPairs, CompactPackage, CompactPackageSchema, CompactPart, CompactPartSchema, CompactXmlNode, CompactXmlNodeSchema, DefinedName, DefinedNameSchema, Package, Package as Package$1, PackageSchema, Part, PartSchema, Relationship, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElement as XmlElement$1, XmlElementSchema, XmlNode, XmlNode as XmlNode$1, XmlNodeSchema, XmlPart, XmlPartSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, attr, base64ToBytes, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, elementsWithTag, encodeCompactPackage, encodePackage, fromCompact, isCompactXmlNode, isXmlNode, packageCodec, parsePackage, parseXml, resolveRelationships, rootElement, serializePackage, textContent, toCompact, unzipPackage, walk, xmlCodec, zipPackage } from "ooxml.js";
|
|
1
|
+
import { Alignment, Attribute, AttributeSchema, BinaryPart, BinaryPartSchema, Box, Box as Box$1, COLOR_BLACK, Color as LayoutColor, Comment, CommentSchema, CompactAttrPairs, CompactPackage, CompactPackageSchema, CompactPart, CompactPartSchema, CompactXmlNode, CompactXmlNodeSchema, DefinedName, DefinedNameSchema, Margins, PAGE_SIZE_A4, PAGE_SIZE_LETTER, Package, Package as Package$1, PackageSchema, PageSize, Part, PartSchema, Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElement as XmlElement$1, XmlElementSchema, XmlNode, XmlNode as XmlNode$1, XmlNodeSchema, XmlPart, XmlPartSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, attr, base64ToBytes, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, elementsWithTag, encodeCompactPackage, encodePackage, fromCompact, isCompactXmlNode, isXmlNode, packageCodec, parsePackage, parseXml, resolveRelationships, rgbHexToColor, rootElement, serializePackage, textContent, toCompact, unzipPackage, walk, xmlCodec, zipPackage } from "ooxml.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//#region src/model/color.d.ts
|
|
4
|
-
declare const LayoutColorSchema: z.ZodObject<{
|
|
5
|
-
r: z.ZodNumber;
|
|
6
|
-
g: z.ZodNumber;
|
|
7
|
-
b: z.ZodNumber;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
type LayoutColor = z.infer<typeof LayoutColorSchema>;
|
|
10
|
-
declare const COLOR_BLACK: LayoutColor;
|
|
11
|
-
declare function rgbHexToColor(hex: string): LayoutColor;
|
|
12
|
-
//#endregion
|
|
13
3
|
//#region src/model/content.d.ts
|
|
14
4
|
declare const CONTENT_FORMAT_VERSION = 1;
|
|
15
5
|
declare const ContentRunSchema: z.ZodObject<{
|
|
@@ -275,12 +265,12 @@ declare const LayoutTextSchema: z.ZodObject<{
|
|
|
275
265
|
font: z.ZodObject<{
|
|
276
266
|
family: z.ZodString;
|
|
277
267
|
weight: z.ZodEnum<{
|
|
278
|
-
bold: "bold";
|
|
279
268
|
normal: "normal";
|
|
269
|
+
bold: "bold";
|
|
280
270
|
}>;
|
|
281
271
|
style: z.ZodEnum<{
|
|
282
|
-
italic: "italic";
|
|
283
272
|
normal: "normal";
|
|
273
|
+
italic: "italic";
|
|
284
274
|
}>;
|
|
285
275
|
}, z.core.$strip>;
|
|
286
276
|
sizePt: z.ZodNumber;
|
|
@@ -377,12 +367,12 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
377
367
|
font: z.ZodObject<{
|
|
378
368
|
family: z.ZodString;
|
|
379
369
|
weight: z.ZodEnum<{
|
|
380
|
-
bold: "bold";
|
|
381
370
|
normal: "normal";
|
|
371
|
+
bold: "bold";
|
|
382
372
|
}>;
|
|
383
373
|
style: z.ZodEnum<{
|
|
384
|
-
italic: "italic";
|
|
385
374
|
normal: "normal";
|
|
375
|
+
italic: "italic";
|
|
386
376
|
}>;
|
|
387
377
|
}, z.core.$strip>;
|
|
388
378
|
sizePt: z.ZodNumber;
|
|
@@ -472,12 +462,12 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
472
462
|
font: z.ZodObject<{
|
|
473
463
|
family: z.ZodString;
|
|
474
464
|
weight: z.ZodEnum<{
|
|
475
|
-
bold: "bold";
|
|
476
465
|
normal: "normal";
|
|
466
|
+
bold: "bold";
|
|
477
467
|
}>;
|
|
478
468
|
style: z.ZodEnum<{
|
|
479
|
-
italic: "italic";
|
|
480
469
|
normal: "normal";
|
|
470
|
+
italic: "italic";
|
|
481
471
|
}>;
|
|
482
472
|
}, z.core.$strip>;
|
|
483
473
|
sizePt: z.ZodNumber;
|
|
@@ -601,12 +591,12 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
601
591
|
font: z.ZodObject<{
|
|
602
592
|
family: z.ZodString;
|
|
603
593
|
weight: z.ZodEnum<{
|
|
604
|
-
bold: "bold";
|
|
605
594
|
normal: "normal";
|
|
595
|
+
bold: "bold";
|
|
606
596
|
}>;
|
|
607
597
|
style: z.ZodEnum<{
|
|
608
|
-
italic: "italic";
|
|
609
598
|
normal: "normal";
|
|
599
|
+
italic: "italic";
|
|
610
600
|
}>;
|
|
611
601
|
}, z.core.$strip>;
|
|
612
602
|
sizePt: z.ZodNumber;
|
|
@@ -698,52 +688,27 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
698
688
|
type LayoutDocument = z.infer<typeof LayoutDocumentSchema>;
|
|
699
689
|
//#endregion
|
|
700
690
|
//#region src/model/geometry.d.ts
|
|
701
|
-
declare
|
|
702
|
-
xPt: z.ZodNumber;
|
|
703
|
-
yPt: z.ZodNumber;
|
|
704
|
-
widthPt: z.ZodNumber;
|
|
705
|
-
heightPt: z.ZodNumber;
|
|
706
|
-
}, z.core.$strip>;
|
|
707
|
-
type Box = z.infer<typeof BoxSchema>;
|
|
708
|
-
declare const PageSizeSchema: z.ZodObject<{
|
|
709
|
-
widthPt: z.ZodNumber;
|
|
710
|
-
heightPt: z.ZodNumber;
|
|
711
|
-
}, z.core.$strip>;
|
|
712
|
-
type PageSize = z.infer<typeof PageSizeSchema>;
|
|
713
|
-
declare const MarginsSchema: z.ZodObject<{
|
|
714
|
-
topPt: z.ZodNumber;
|
|
715
|
-
rightPt: z.ZodNumber;
|
|
716
|
-
bottomPt: z.ZodNumber;
|
|
717
|
-
leftPt: z.ZodNumber;
|
|
718
|
-
}, z.core.$strip>;
|
|
719
|
-
type Margins = z.infer<typeof MarginsSchema>;
|
|
720
|
-
declare const PAGE_SIZE_LETTER: PageSize;
|
|
721
|
-
declare const PAGE_SIZE_A4: PageSize;
|
|
722
|
-
declare const SLIDE_SIZE_WIDESCREEN: PageSize;
|
|
723
|
-
declare const SLIDE_SIZE_STANDARD: PageSize;
|
|
724
|
-
declare function flipY(box: Box, containerHeightPt: number): Box;
|
|
691
|
+
declare function flipY(box: Box$1, containerHeightPt: number): Box$1;
|
|
725
692
|
//#endregion
|
|
726
693
|
//#region src/model/style.d.ts
|
|
727
694
|
declare const LayoutFontSchema: z.ZodObject<{
|
|
728
695
|
family: z.ZodString;
|
|
729
696
|
weight: z.ZodEnum<{
|
|
730
|
-
bold: "bold";
|
|
731
697
|
normal: "normal";
|
|
698
|
+
bold: "bold";
|
|
732
699
|
}>;
|
|
733
700
|
style: z.ZodEnum<{
|
|
734
|
-
italic: "italic";
|
|
735
701
|
normal: "normal";
|
|
702
|
+
italic: "italic";
|
|
736
703
|
}>;
|
|
737
704
|
}, z.core.$strip>;
|
|
738
705
|
type LayoutFont = z.infer<typeof LayoutFontSchema>;
|
|
739
706
|
declare const DEFAULT_LAYOUT_FONT: LayoutFont;
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
}>;
|
|
746
|
-
type Alignment = z.infer<typeof AlignmentSchema>;
|
|
707
|
+
//#endregion
|
|
708
|
+
//#region src/model/bytes.d.ts
|
|
709
|
+
declare const DocxBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
710
|
+
declare const PptxBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
711
|
+
declare const PdfBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
747
712
|
//#endregion
|
|
748
713
|
//#region src/edit/docx/image.d.ts
|
|
749
714
|
interface ImageInit$1 {
|
|
@@ -1002,6 +967,125 @@ interface WritePdfOptions {
|
|
|
1002
967
|
}
|
|
1003
968
|
declare function writePdf(doc: LayoutDocument, options?: WritePdfOptions): Uint8Array<ArrayBuffer>;
|
|
1004
969
|
//#endregion
|
|
970
|
+
//#region src/pdf/codec.d.ts
|
|
971
|
+
declare const pdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodObject<{
|
|
972
|
+
formatVersion: z.ZodLiteral<1>;
|
|
973
|
+
metadata: z.ZodObject<{
|
|
974
|
+
title: z.ZodOptional<z.ZodString>;
|
|
975
|
+
author: z.ZodOptional<z.ZodString>;
|
|
976
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
977
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
978
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
979
|
+
producer: z.ZodOptional<z.ZodString>;
|
|
980
|
+
createdIso: z.ZodOptional<z.ZodString>;
|
|
981
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
982
|
+
}, z.core.$strip>;
|
|
983
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
984
|
+
widthPt: z.ZodNumber;
|
|
985
|
+
heightPt: z.ZodNumber;
|
|
986
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
987
|
+
kind: z.ZodLiteral<"text">;
|
|
988
|
+
text: z.ZodString;
|
|
989
|
+
xPt: z.ZodNumber;
|
|
990
|
+
yPt: z.ZodNumber;
|
|
991
|
+
font: z.ZodObject<{
|
|
992
|
+
family: z.ZodString;
|
|
993
|
+
weight: z.ZodEnum<{
|
|
994
|
+
normal: "normal";
|
|
995
|
+
bold: "bold";
|
|
996
|
+
}>;
|
|
997
|
+
style: z.ZodEnum<{
|
|
998
|
+
normal: "normal";
|
|
999
|
+
italic: "italic";
|
|
1000
|
+
}>;
|
|
1001
|
+
}, z.core.$strip>;
|
|
1002
|
+
sizePt: z.ZodNumber;
|
|
1003
|
+
color: z.ZodObject<{
|
|
1004
|
+
r: z.ZodNumber;
|
|
1005
|
+
g: z.ZodNumber;
|
|
1006
|
+
b: z.ZodNumber;
|
|
1007
|
+
}, z.core.$strip>;
|
|
1008
|
+
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
1009
|
+
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
1010
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
1011
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1012
|
+
kind: z.ZodLiteral<"image">;
|
|
1013
|
+
imageId: z.ZodString;
|
|
1014
|
+
xPt: z.ZodNumber;
|
|
1015
|
+
yPt: z.ZodNumber;
|
|
1016
|
+
widthPt: z.ZodNumber;
|
|
1017
|
+
heightPt: z.ZodNumber;
|
|
1018
|
+
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
1019
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1020
|
+
kind: z.ZodLiteral<"rect">;
|
|
1021
|
+
xPt: z.ZodNumber;
|
|
1022
|
+
yPt: z.ZodNumber;
|
|
1023
|
+
widthPt: z.ZodNumber;
|
|
1024
|
+
heightPt: z.ZodNumber;
|
|
1025
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
1026
|
+
r: z.ZodNumber;
|
|
1027
|
+
g: z.ZodNumber;
|
|
1028
|
+
b: z.ZodNumber;
|
|
1029
|
+
}, z.core.$strip>>;
|
|
1030
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
1031
|
+
color: z.ZodObject<{
|
|
1032
|
+
r: z.ZodNumber;
|
|
1033
|
+
g: z.ZodNumber;
|
|
1034
|
+
b: z.ZodNumber;
|
|
1035
|
+
}, z.core.$strip>;
|
|
1036
|
+
widthPt: z.ZodNumber;
|
|
1037
|
+
}, z.core.$strip>>;
|
|
1038
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1039
|
+
kind: z.ZodLiteral<"line">;
|
|
1040
|
+
x1Pt: z.ZodNumber;
|
|
1041
|
+
y1Pt: z.ZodNumber;
|
|
1042
|
+
x2Pt: z.ZodNumber;
|
|
1043
|
+
y2Pt: z.ZodNumber;
|
|
1044
|
+
color: z.ZodObject<{
|
|
1045
|
+
r: z.ZodNumber;
|
|
1046
|
+
g: z.ZodNumber;
|
|
1047
|
+
b: z.ZodNumber;
|
|
1048
|
+
}, z.core.$strip>;
|
|
1049
|
+
widthPt: z.ZodNumber;
|
|
1050
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1051
|
+
kind: z.ZodLiteral<"ellipse">;
|
|
1052
|
+
xPt: z.ZodNumber;
|
|
1053
|
+
yPt: z.ZodNumber;
|
|
1054
|
+
widthPt: z.ZodNumber;
|
|
1055
|
+
heightPt: z.ZodNumber;
|
|
1056
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
1057
|
+
r: z.ZodNumber;
|
|
1058
|
+
g: z.ZodNumber;
|
|
1059
|
+
b: z.ZodNumber;
|
|
1060
|
+
}, z.core.$strip>>;
|
|
1061
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
1062
|
+
color: z.ZodObject<{
|
|
1063
|
+
r: z.ZodNumber;
|
|
1064
|
+
g: z.ZodNumber;
|
|
1065
|
+
b: z.ZodNumber;
|
|
1066
|
+
}, z.core.$strip>;
|
|
1067
|
+
widthPt: z.ZodNumber;
|
|
1068
|
+
}, z.core.$strip>>;
|
|
1069
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1070
|
+
kind: z.ZodLiteral<"link">;
|
|
1071
|
+
uri: z.ZodString;
|
|
1072
|
+
xPt: z.ZodNumber;
|
|
1073
|
+
yPt: z.ZodNumber;
|
|
1074
|
+
widthPt: z.ZodNumber;
|
|
1075
|
+
heightPt: z.ZodNumber;
|
|
1076
|
+
}, z.core.$strip>], "kind">>;
|
|
1077
|
+
}, z.core.$strip>>;
|
|
1078
|
+
images: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1079
|
+
format: z.ZodEnum<{
|
|
1080
|
+
png: "png";
|
|
1081
|
+
jpeg: "jpeg";
|
|
1082
|
+
}>;
|
|
1083
|
+
base64: z.ZodString;
|
|
1084
|
+
widthPx: z.ZodNumber;
|
|
1085
|
+
heightPx: z.ZodNumber;
|
|
1086
|
+
}, z.core.$strip>>;
|
|
1087
|
+
}, z.core.$strip>>;
|
|
1088
|
+
//#endregion
|
|
1005
1089
|
//#region src/ooxml/docx/read.d.ts
|
|
1006
1090
|
declare function readDocxContent(pkg: Package$1): ContentDocument;
|
|
1007
1091
|
//#endregion
|
|
@@ -1063,6 +1147,10 @@ interface PdfToDocumentOptions {
|
|
|
1063
1147
|
declare function pdfToDocx(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
|
|
1064
1148
|
declare function pdfToPptx(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
|
|
1065
1149
|
//#endregion
|
|
1150
|
+
//#region src/convert/codec.d.ts
|
|
1151
|
+
declare const docxPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
1152
|
+
declare const pptxPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
1153
|
+
//#endregion
|
|
1066
1154
|
//#region src/convert/port.d.ts
|
|
1067
1155
|
type DocumentFormat = 'docx' | 'pptx' | 'pdf';
|
|
1068
1156
|
interface DocumentPayload {
|
|
@@ -1107,4 +1195,4 @@ declare function fixedClock(date: Date): ClockPort;
|
|
|
1107
1195
|
//#region src/ports/abort.d.ts
|
|
1108
1196
|
declare function throwIfAborted(signal: AbortSignal | undefined): void;
|
|
1109
1197
|
//#endregion
|
|
1110
|
-
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, COLOR_BLACK, CONTENT_FORMAT_VERSION, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentDocument, ContentDocumentSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSlide, ContentSlideSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ConversionRequest, type ConversionResult, DEFAULT_LAYOUT_FONT, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentConverter, type DocumentFormat, type DocumentPayload, type DocumentToPdfOptions, type DocxBody, DocxEditor, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, LAYOUT_FORMAT_VERSION, type LayoutColor, type LayoutDocument, type LayoutEllipse, type LayoutFont, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutRect, type LayoutText, type Margins, NOOP_DIAGNOSTIC_SINK, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, type Part, PartSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEncryptedError, PdfParseError, type PdfToDocumentOptions, PptxEditor, PptxShape, PptxSlide, type ReadPdfOptions, type ReconstructOptions, type Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SlideImageInit, type SlidesLayoutOptions, type TextBoxInit, type WinAnsiSubstitution, type WritePdfOptions, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, attr, base64ToBytes, buildDocxPackage, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, convertPresentationToLayout, convertWordprocessingToLayout, createDocx, createLocalDocumentConverter, createPptx, decodeCompactPackage, decodeEntities, decodePackage, docxToPdf, elementsWithTag, encodeCompactPackage, encodePackage, fixedClock, flipY, fromCompact, isCompactXmlNode, isContentBlock, isXmlNode, openDocx, openPptx, packageCodec, parsePackage, parseXml, pdfToDocx, pdfToPptx, pptxToPdf, readDocxContent, readPdf, readPptxContent, reconstructPresentation, reconstructWordprocessing, resolveRelationships, rgbHexToColor, rootElement, serializePackage, systemClock, textContent, throwIfAborted, toCompact, unzipPackage, walk, writePdf, xmlCodec, zipPackage };
|
|
1198
|
+
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, COLOR_BLACK, CONTENT_FORMAT_VERSION, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentDocument, ContentDocumentSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSlide, ContentSlideSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ConversionRequest, type ConversionResult, DEFAULT_LAYOUT_FONT, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentConverter, type DocumentFormat, type DocumentPayload, type DocumentToPdfOptions, type DocxBody, DocxBytesSchema, DocxEditor, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, LAYOUT_FORMAT_VERSION, type LayoutColor, type LayoutDocument, type LayoutEllipse, type LayoutFont, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutRect, type LayoutText, type Margins, NOOP_DIAGNOSTIC_SINK, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEncryptedError, PdfParseError, type PdfToDocumentOptions, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, type ReadPdfOptions, type ReconstructOptions, type Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SlideImageInit, type SlidesLayoutOptions, type TextBoxInit, type WinAnsiSubstitution, type WritePdfOptions, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, attr, base64ToBytes, buildDocxPackage, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, convertPresentationToLayout, convertWordprocessingToLayout, createDocx, createLocalDocumentConverter, createPptx, decodeCompactPackage, decodeEntities, decodePackage, docxPdfCodec, docxToPdf, elementsWithTag, encodeCompactPackage, encodePackage, fixedClock, flipY, fromCompact, isCompactXmlNode, isContentBlock, isXmlNode, openDocx, openPptx, packageCodec, parsePackage, parseXml, pdfCodec, pdfToDocx, pdfToPptx, pptxPdfCodec, pptxToPdf, readDocxContent, readPdf, readPptxContent, reconstructPresentation, reconstructWordprocessing, resolveRelationships, rgbHexToColor, rootElement, serializePackage, systemClock, textContent, throwIfAborted, toCompact, unzipPackage, walk, writePdf, xmlCodec, zipPackage };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import { Attribute, AttributeSchema, BinaryPart, BinaryPartSchema, Comment, CommentSchema, CompactAttrPairs, CompactPackage, CompactPackageSchema, CompactPart, CompactPartSchema, CompactXmlNode, CompactXmlNodeSchema, DefinedName, DefinedNameSchema, Package, Package as Package$1, PackageSchema, Part, PartSchema, Relationship, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElement as XmlElement$1, XmlElementSchema, XmlNode, XmlNode as XmlNode$1, XmlNodeSchema, XmlPart, XmlPartSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, attr, base64ToBytes, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, elementsWithTag, encodeCompactPackage, encodePackage, fromCompact, isCompactXmlNode, isXmlNode, packageCodec, parsePackage, parseXml, resolveRelationships, rootElement, serializePackage, textContent, toCompact, unzipPackage, walk, xmlCodec, zipPackage } from "ooxml.js";
|
|
1
|
+
import { Alignment, Attribute, AttributeSchema, BinaryPart, BinaryPartSchema, Box, Box as Box$1, COLOR_BLACK, Color as LayoutColor, Comment, CommentSchema, CompactAttrPairs, CompactPackage, CompactPackageSchema, CompactPart, CompactPartSchema, CompactXmlNode, CompactXmlNodeSchema, DefinedName, DefinedNameSchema, Margins, PAGE_SIZE_A4, PAGE_SIZE_LETTER, Package, Package as Package$1, PackageSchema, PageSize, Part, PartSchema, Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, XmlCdata, XmlCdataSchema, XmlComment, XmlCommentSchema, XmlDeclaration, XmlDeclarationSchema, XmlElement, XmlElement as XmlElement$1, XmlElementSchema, XmlNode, XmlNode as XmlNode$1, XmlNodeSchema, XmlPart, XmlPartSchema, XmlPi, XmlPiSchema, XmlText, XmlTextSchema, attr, base64ToBytes, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, elementsWithTag, encodeCompactPackage, encodePackage, fromCompact, isCompactXmlNode, isXmlNode, packageCodec, parsePackage, parseXml, resolveRelationships, rgbHexToColor, rootElement, serializePackage, textContent, toCompact, unzipPackage, walk, xmlCodec, zipPackage } from "ooxml.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//#region src/model/color.d.ts
|
|
4
|
-
declare const LayoutColorSchema: z.ZodObject<{
|
|
5
|
-
r: z.ZodNumber;
|
|
6
|
-
g: z.ZodNumber;
|
|
7
|
-
b: z.ZodNumber;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
type LayoutColor = z.infer<typeof LayoutColorSchema>;
|
|
10
|
-
declare const COLOR_BLACK: LayoutColor;
|
|
11
|
-
declare function rgbHexToColor(hex: string): LayoutColor;
|
|
12
|
-
//#endregion
|
|
13
3
|
//#region src/model/content.d.ts
|
|
14
4
|
declare const CONTENT_FORMAT_VERSION = 1;
|
|
15
5
|
declare const ContentRunSchema: z.ZodObject<{
|
|
@@ -275,12 +265,12 @@ declare const LayoutTextSchema: z.ZodObject<{
|
|
|
275
265
|
font: z.ZodObject<{
|
|
276
266
|
family: z.ZodString;
|
|
277
267
|
weight: z.ZodEnum<{
|
|
278
|
-
bold: "bold";
|
|
279
268
|
normal: "normal";
|
|
269
|
+
bold: "bold";
|
|
280
270
|
}>;
|
|
281
271
|
style: z.ZodEnum<{
|
|
282
|
-
italic: "italic";
|
|
283
272
|
normal: "normal";
|
|
273
|
+
italic: "italic";
|
|
284
274
|
}>;
|
|
285
275
|
}, z.core.$strip>;
|
|
286
276
|
sizePt: z.ZodNumber;
|
|
@@ -377,12 +367,12 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
377
367
|
font: z.ZodObject<{
|
|
378
368
|
family: z.ZodString;
|
|
379
369
|
weight: z.ZodEnum<{
|
|
380
|
-
bold: "bold";
|
|
381
370
|
normal: "normal";
|
|
371
|
+
bold: "bold";
|
|
382
372
|
}>;
|
|
383
373
|
style: z.ZodEnum<{
|
|
384
|
-
italic: "italic";
|
|
385
374
|
normal: "normal";
|
|
375
|
+
italic: "italic";
|
|
386
376
|
}>;
|
|
387
377
|
}, z.core.$strip>;
|
|
388
378
|
sizePt: z.ZodNumber;
|
|
@@ -472,12 +462,12 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
472
462
|
font: z.ZodObject<{
|
|
473
463
|
family: z.ZodString;
|
|
474
464
|
weight: z.ZodEnum<{
|
|
475
|
-
bold: "bold";
|
|
476
465
|
normal: "normal";
|
|
466
|
+
bold: "bold";
|
|
477
467
|
}>;
|
|
478
468
|
style: z.ZodEnum<{
|
|
479
|
-
italic: "italic";
|
|
480
469
|
normal: "normal";
|
|
470
|
+
italic: "italic";
|
|
481
471
|
}>;
|
|
482
472
|
}, z.core.$strip>;
|
|
483
473
|
sizePt: z.ZodNumber;
|
|
@@ -601,12 +591,12 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
601
591
|
font: z.ZodObject<{
|
|
602
592
|
family: z.ZodString;
|
|
603
593
|
weight: z.ZodEnum<{
|
|
604
|
-
bold: "bold";
|
|
605
594
|
normal: "normal";
|
|
595
|
+
bold: "bold";
|
|
606
596
|
}>;
|
|
607
597
|
style: z.ZodEnum<{
|
|
608
|
-
italic: "italic";
|
|
609
598
|
normal: "normal";
|
|
599
|
+
italic: "italic";
|
|
610
600
|
}>;
|
|
611
601
|
}, z.core.$strip>;
|
|
612
602
|
sizePt: z.ZodNumber;
|
|
@@ -698,52 +688,27 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
698
688
|
type LayoutDocument = z.infer<typeof LayoutDocumentSchema>;
|
|
699
689
|
//#endregion
|
|
700
690
|
//#region src/model/geometry.d.ts
|
|
701
|
-
declare
|
|
702
|
-
xPt: z.ZodNumber;
|
|
703
|
-
yPt: z.ZodNumber;
|
|
704
|
-
widthPt: z.ZodNumber;
|
|
705
|
-
heightPt: z.ZodNumber;
|
|
706
|
-
}, z.core.$strip>;
|
|
707
|
-
type Box = z.infer<typeof BoxSchema>;
|
|
708
|
-
declare const PageSizeSchema: z.ZodObject<{
|
|
709
|
-
widthPt: z.ZodNumber;
|
|
710
|
-
heightPt: z.ZodNumber;
|
|
711
|
-
}, z.core.$strip>;
|
|
712
|
-
type PageSize = z.infer<typeof PageSizeSchema>;
|
|
713
|
-
declare const MarginsSchema: z.ZodObject<{
|
|
714
|
-
topPt: z.ZodNumber;
|
|
715
|
-
rightPt: z.ZodNumber;
|
|
716
|
-
bottomPt: z.ZodNumber;
|
|
717
|
-
leftPt: z.ZodNumber;
|
|
718
|
-
}, z.core.$strip>;
|
|
719
|
-
type Margins = z.infer<typeof MarginsSchema>;
|
|
720
|
-
declare const PAGE_SIZE_LETTER: PageSize;
|
|
721
|
-
declare const PAGE_SIZE_A4: PageSize;
|
|
722
|
-
declare const SLIDE_SIZE_WIDESCREEN: PageSize;
|
|
723
|
-
declare const SLIDE_SIZE_STANDARD: PageSize;
|
|
724
|
-
declare function flipY(box: Box, containerHeightPt: number): Box;
|
|
691
|
+
declare function flipY(box: Box$1, containerHeightPt: number): Box$1;
|
|
725
692
|
//#endregion
|
|
726
693
|
//#region src/model/style.d.ts
|
|
727
694
|
declare const LayoutFontSchema: z.ZodObject<{
|
|
728
695
|
family: z.ZodString;
|
|
729
696
|
weight: z.ZodEnum<{
|
|
730
|
-
bold: "bold";
|
|
731
697
|
normal: "normal";
|
|
698
|
+
bold: "bold";
|
|
732
699
|
}>;
|
|
733
700
|
style: z.ZodEnum<{
|
|
734
|
-
italic: "italic";
|
|
735
701
|
normal: "normal";
|
|
702
|
+
italic: "italic";
|
|
736
703
|
}>;
|
|
737
704
|
}, z.core.$strip>;
|
|
738
705
|
type LayoutFont = z.infer<typeof LayoutFontSchema>;
|
|
739
706
|
declare const DEFAULT_LAYOUT_FONT: LayoutFont;
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
}>;
|
|
746
|
-
type Alignment = z.infer<typeof AlignmentSchema>;
|
|
707
|
+
//#endregion
|
|
708
|
+
//#region src/model/bytes.d.ts
|
|
709
|
+
declare const DocxBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
710
|
+
declare const PptxBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
711
|
+
declare const PdfBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
747
712
|
//#endregion
|
|
748
713
|
//#region src/edit/docx/image.d.ts
|
|
749
714
|
interface ImageInit$1 {
|
|
@@ -1002,6 +967,125 @@ interface WritePdfOptions {
|
|
|
1002
967
|
}
|
|
1003
968
|
declare function writePdf(doc: LayoutDocument, options?: WritePdfOptions): Uint8Array<ArrayBuffer>;
|
|
1004
969
|
//#endregion
|
|
970
|
+
//#region src/pdf/codec.d.ts
|
|
971
|
+
declare const pdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodObject<{
|
|
972
|
+
formatVersion: z.ZodLiteral<1>;
|
|
973
|
+
metadata: z.ZodObject<{
|
|
974
|
+
title: z.ZodOptional<z.ZodString>;
|
|
975
|
+
author: z.ZodOptional<z.ZodString>;
|
|
976
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
977
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
978
|
+
creator: z.ZodOptional<z.ZodString>;
|
|
979
|
+
producer: z.ZodOptional<z.ZodString>;
|
|
980
|
+
createdIso: z.ZodOptional<z.ZodString>;
|
|
981
|
+
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
982
|
+
}, z.core.$strip>;
|
|
983
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
984
|
+
widthPt: z.ZodNumber;
|
|
985
|
+
heightPt: z.ZodNumber;
|
|
986
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
987
|
+
kind: z.ZodLiteral<"text">;
|
|
988
|
+
text: z.ZodString;
|
|
989
|
+
xPt: z.ZodNumber;
|
|
990
|
+
yPt: z.ZodNumber;
|
|
991
|
+
font: z.ZodObject<{
|
|
992
|
+
family: z.ZodString;
|
|
993
|
+
weight: z.ZodEnum<{
|
|
994
|
+
normal: "normal";
|
|
995
|
+
bold: "bold";
|
|
996
|
+
}>;
|
|
997
|
+
style: z.ZodEnum<{
|
|
998
|
+
normal: "normal";
|
|
999
|
+
italic: "italic";
|
|
1000
|
+
}>;
|
|
1001
|
+
}, z.core.$strip>;
|
|
1002
|
+
sizePt: z.ZodNumber;
|
|
1003
|
+
color: z.ZodObject<{
|
|
1004
|
+
r: z.ZodNumber;
|
|
1005
|
+
g: z.ZodNumber;
|
|
1006
|
+
b: z.ZodNumber;
|
|
1007
|
+
}, z.core.$strip>;
|
|
1008
|
+
widthPt: z.ZodOptional<z.ZodNumber>;
|
|
1009
|
+
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
1010
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
1011
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1012
|
+
kind: z.ZodLiteral<"image">;
|
|
1013
|
+
imageId: z.ZodString;
|
|
1014
|
+
xPt: z.ZodNumber;
|
|
1015
|
+
yPt: z.ZodNumber;
|
|
1016
|
+
widthPt: z.ZodNumber;
|
|
1017
|
+
heightPt: z.ZodNumber;
|
|
1018
|
+
rotationDeg: z.ZodOptional<z.ZodNumber>;
|
|
1019
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1020
|
+
kind: z.ZodLiteral<"rect">;
|
|
1021
|
+
xPt: z.ZodNumber;
|
|
1022
|
+
yPt: z.ZodNumber;
|
|
1023
|
+
widthPt: z.ZodNumber;
|
|
1024
|
+
heightPt: z.ZodNumber;
|
|
1025
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
1026
|
+
r: z.ZodNumber;
|
|
1027
|
+
g: z.ZodNumber;
|
|
1028
|
+
b: z.ZodNumber;
|
|
1029
|
+
}, z.core.$strip>>;
|
|
1030
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
1031
|
+
color: z.ZodObject<{
|
|
1032
|
+
r: z.ZodNumber;
|
|
1033
|
+
g: z.ZodNumber;
|
|
1034
|
+
b: z.ZodNumber;
|
|
1035
|
+
}, z.core.$strip>;
|
|
1036
|
+
widthPt: z.ZodNumber;
|
|
1037
|
+
}, z.core.$strip>>;
|
|
1038
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1039
|
+
kind: z.ZodLiteral<"line">;
|
|
1040
|
+
x1Pt: z.ZodNumber;
|
|
1041
|
+
y1Pt: z.ZodNumber;
|
|
1042
|
+
x2Pt: z.ZodNumber;
|
|
1043
|
+
y2Pt: z.ZodNumber;
|
|
1044
|
+
color: z.ZodObject<{
|
|
1045
|
+
r: z.ZodNumber;
|
|
1046
|
+
g: z.ZodNumber;
|
|
1047
|
+
b: z.ZodNumber;
|
|
1048
|
+
}, z.core.$strip>;
|
|
1049
|
+
widthPt: z.ZodNumber;
|
|
1050
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1051
|
+
kind: z.ZodLiteral<"ellipse">;
|
|
1052
|
+
xPt: z.ZodNumber;
|
|
1053
|
+
yPt: z.ZodNumber;
|
|
1054
|
+
widthPt: z.ZodNumber;
|
|
1055
|
+
heightPt: z.ZodNumber;
|
|
1056
|
+
fill: z.ZodOptional<z.ZodObject<{
|
|
1057
|
+
r: z.ZodNumber;
|
|
1058
|
+
g: z.ZodNumber;
|
|
1059
|
+
b: z.ZodNumber;
|
|
1060
|
+
}, z.core.$strip>>;
|
|
1061
|
+
stroke: z.ZodOptional<z.ZodObject<{
|
|
1062
|
+
color: z.ZodObject<{
|
|
1063
|
+
r: z.ZodNumber;
|
|
1064
|
+
g: z.ZodNumber;
|
|
1065
|
+
b: z.ZodNumber;
|
|
1066
|
+
}, z.core.$strip>;
|
|
1067
|
+
widthPt: z.ZodNumber;
|
|
1068
|
+
}, z.core.$strip>>;
|
|
1069
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1070
|
+
kind: z.ZodLiteral<"link">;
|
|
1071
|
+
uri: z.ZodString;
|
|
1072
|
+
xPt: z.ZodNumber;
|
|
1073
|
+
yPt: z.ZodNumber;
|
|
1074
|
+
widthPt: z.ZodNumber;
|
|
1075
|
+
heightPt: z.ZodNumber;
|
|
1076
|
+
}, z.core.$strip>], "kind">>;
|
|
1077
|
+
}, z.core.$strip>>;
|
|
1078
|
+
images: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1079
|
+
format: z.ZodEnum<{
|
|
1080
|
+
png: "png";
|
|
1081
|
+
jpeg: "jpeg";
|
|
1082
|
+
}>;
|
|
1083
|
+
base64: z.ZodString;
|
|
1084
|
+
widthPx: z.ZodNumber;
|
|
1085
|
+
heightPx: z.ZodNumber;
|
|
1086
|
+
}, z.core.$strip>>;
|
|
1087
|
+
}, z.core.$strip>>;
|
|
1088
|
+
//#endregion
|
|
1005
1089
|
//#region src/ooxml/docx/read.d.ts
|
|
1006
1090
|
declare function readDocxContent(pkg: Package$1): ContentDocument;
|
|
1007
1091
|
//#endregion
|
|
@@ -1063,6 +1147,10 @@ interface PdfToDocumentOptions {
|
|
|
1063
1147
|
declare function pdfToDocx(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
|
|
1064
1148
|
declare function pdfToPptx(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
|
|
1065
1149
|
//#endregion
|
|
1150
|
+
//#region src/convert/codec.d.ts
|
|
1151
|
+
declare const docxPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
1152
|
+
declare const pptxPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
1153
|
+
//#endregion
|
|
1066
1154
|
//#region src/convert/port.d.ts
|
|
1067
1155
|
type DocumentFormat = 'docx' | 'pptx' | 'pdf';
|
|
1068
1156
|
interface DocumentPayload {
|
|
@@ -1107,4 +1195,4 @@ declare function fixedClock(date: Date): ClockPort;
|
|
|
1107
1195
|
//#region src/ports/abort.d.ts
|
|
1108
1196
|
declare function throwIfAborted(signal: AbortSignal | undefined): void;
|
|
1109
1197
|
//#endregion
|
|
1110
|
-
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, COLOR_BLACK, CONTENT_FORMAT_VERSION, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentDocument, ContentDocumentSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSlide, ContentSlideSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ConversionRequest, type ConversionResult, DEFAULT_LAYOUT_FONT, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentConverter, type DocumentFormat, type DocumentPayload, type DocumentToPdfOptions, type DocxBody, DocxEditor, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, LAYOUT_FORMAT_VERSION, type LayoutColor, type LayoutDocument, type LayoutEllipse, type LayoutFont, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutRect, type LayoutText, type Margins, NOOP_DIAGNOSTIC_SINK, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, type Part, PartSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEncryptedError, PdfParseError, type PdfToDocumentOptions, PptxEditor, PptxShape, PptxSlide, type ReadPdfOptions, type ReconstructOptions, type Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SlideImageInit, type SlidesLayoutOptions, type TextBoxInit, type WinAnsiSubstitution, type WritePdfOptions, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, attr, base64ToBytes, buildDocxPackage, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, convertPresentationToLayout, convertWordprocessingToLayout, createDocx, createLocalDocumentConverter, createPptx, decodeCompactPackage, decodeEntities, decodePackage, docxToPdf, elementsWithTag, encodeCompactPackage, encodePackage, fixedClock, flipY, fromCompact, isCompactXmlNode, isContentBlock, isXmlNode, openDocx, openPptx, packageCodec, parsePackage, parseXml, pdfToDocx, pdfToPptx, pptxToPdf, readDocxContent, readPdf, readPptxContent, reconstructPresentation, reconstructWordprocessing, resolveRelationships, rgbHexToColor, rootElement, serializePackage, systemClock, textContent, throwIfAborted, toCompact, unzipPackage, walk, writePdf, xmlCodec, zipPackage };
|
|
1198
|
+
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, COLOR_BLACK, CONTENT_FORMAT_VERSION, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentDocument, ContentDocumentSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSlide, ContentSlideSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ConversionRequest, type ConversionResult, DEFAULT_LAYOUT_FONT, type DefinedName, DefinedNameSchema, type Diagnostic, type DocumentConverter, type DocumentFormat, type DocumentPayload, type DocumentToPdfOptions, type DocxBody, DocxBytesSchema, DocxEditor, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, LAYOUT_FORMAT_VERSION, type LayoutColor, type LayoutDocument, type LayoutEllipse, type LayoutFont, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutRect, type LayoutText, type Margins, NOOP_DIAGNOSTIC_SINK, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, type Part, PartSchema, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEncryptedError, PdfParseError, type PdfToDocumentOptions, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, type ReadPdfOptions, type ReconstructOptions, type Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type SlideImageInit, type SlidesLayoutOptions, type TextBoxInit, type WinAnsiSubstitution, type WritePdfOptions, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, attr, base64ToBytes, buildDocxPackage, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, convertPresentationToLayout, convertWordprocessingToLayout, createDocx, createLocalDocumentConverter, createPptx, decodeCompactPackage, decodeEntities, decodePackage, docxPdfCodec, docxToPdf, elementsWithTag, encodeCompactPackage, encodePackage, fixedClock, flipY, fromCompact, isCompactXmlNode, isContentBlock, isXmlNode, openDocx, openPptx, packageCodec, parsePackage, parseXml, pdfCodec, pdfToDocx, pdfToPptx, pptxPdfCodec, pptxToPdf, readDocxContent, readPdf, readPptxContent, reconstructPresentation, reconstructWordprocessing, resolveRelationships, rgbHexToColor, rootElement, serializePackage, systemClock, textContent, throwIfAborted, toCompact, unzipPackage, walk, writePdf, xmlCodec, zipPackage };
|