documents.js 1.39.1 → 1.41.0

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/dist/index.d.cts CHANGED
@@ -84,7 +84,7 @@ declare const OdpBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<Ar
84
84
  declare const OdgBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
85
85
  //#endregion
86
86
  //#region src/edit/docx/image.d.ts
87
- interface ImageInit$1 {
87
+ interface ImageInit$2 {
88
88
  readonly format: 'png' | 'jpeg';
89
89
  readonly bytes: Uint8Array<ArrayBuffer>;
90
90
  readonly widthPt: number;
@@ -161,7 +161,7 @@ declare class DocxParagraph {
161
161
  set alignment(value: 'left' | 'center' | 'right' | 'justify' | undefined);
162
162
  get list(): ContentListMembership$1 | undefined;
163
163
  set list(value: ContentListMembership$1 | undefined);
164
- insertImageAfter(image: ImageInit$1): void;
164
+ insertImageAfter(image: ImageInit$2): void;
165
165
  remove(): void;
166
166
  }
167
167
  //#endregion
@@ -218,7 +218,7 @@ declare function createDocx(): DocxEditor;
218
218
  declare function buildDocxPackage(content: ContentDocument): Package$1;
219
219
  //#endregion
220
220
  //#region src/edit/pptx/image.d.ts
221
- interface ImageInit {
221
+ interface ImageInit$1 {
222
222
  readonly format: 'png' | 'jpeg';
223
223
  readonly bytes: Uint8Array<ArrayBuffer>;
224
224
  readonly altText?: string;
@@ -253,14 +253,14 @@ interface DrawingParagraphInit {
253
253
  }
254
254
  //#endregion
255
255
  //#region src/edit/pptx/slide.d.ts
256
- interface TextBoxInit {
256
+ interface TextBoxInit$1 {
257
257
  readonly frame: Box;
258
258
  readonly text: string;
259
259
  }
260
- interface SlideImageInit extends ImageInit {
260
+ interface SlideImageInit$1 extends ImageInit$1 {
261
261
  readonly frame: Box;
262
262
  }
263
- interface SlideContext {
263
+ interface SlideContext$1 {
264
264
  readonly pkg: Package$1;
265
265
  readonly slidePartPath: string;
266
266
  readonly mediaDir: string;
@@ -270,11 +270,11 @@ declare class PptxSlide {
270
270
  private readonly node;
271
271
  private readonly context;
272
272
  private removed;
273
- constructor(container: XmlNode$1[], node: XmlElement$1, context: SlideContext);
273
+ constructor(container: XmlNode$1[], node: XmlElement$1, context: SlideContext$1);
274
274
  private live;
275
275
  shapes(): PptxShape[];
276
- addTextBox(init: TextBoxInit): PptxShape;
277
- addImage(init: SlideImageInit): PptxShape;
276
+ addTextBox(init: TextBoxInit$1): PptxShape;
277
+ addImage(init: SlideImageInit$1): PptxShape;
278
278
  get notes(): string;
279
279
  set notes(value: string);
280
280
  remove(): void;
@@ -434,6 +434,81 @@ declare function createOdt(): OdtEditor;
434
434
  //#region src/edit/odt/content.d.ts
435
435
  declare function buildOdtPackage(content: ContentDocument): Package$2;
436
436
  //#endregion
437
+ //#region src/edit/odp/image.d.ts
438
+ interface ImageInit {
439
+ readonly format: 'png' | 'jpeg';
440
+ readonly bytes: Uint8Array<ArrayBuffer>;
441
+ readonly altText?: string;
442
+ }
443
+ //#endregion
444
+ //#region src/edit/odp/shape.d.ts
445
+ declare class OdpShape {
446
+ private readonly container;
447
+ private readonly node;
448
+ private readonly pkg;
449
+ private removed;
450
+ constructor(container: XmlNode$2[], node: XmlElement$2, pkg: Package$2);
451
+ private live;
452
+ get name(): string | undefined;
453
+ get frame(): Box | undefined;
454
+ set frame(value: Box);
455
+ get rotationDeg(): number | undefined;
456
+ set rotationDeg(value: number | undefined);
457
+ private applyGeometry;
458
+ private textBox;
459
+ paragraphs(): OdtParagraph[];
460
+ appendParagraph(init?: ParagraphInit): OdtParagraph;
461
+ get text(): string;
462
+ set text(value: string);
463
+ addList(): OdtList;
464
+ remove(): void;
465
+ }
466
+ //#endregion
467
+ //#region src/edit/odp/slide.d.ts
468
+ interface TextBoxInit {
469
+ readonly frame: Box;
470
+ readonly text: string;
471
+ }
472
+ interface SlideImageInit extends ImageInit {
473
+ readonly frame: Box;
474
+ }
475
+ interface SlideContext {
476
+ readonly pkg: Package$2;
477
+ }
478
+ declare class OdpSlide {
479
+ private readonly container;
480
+ private readonly node;
481
+ private readonly context;
482
+ private removed;
483
+ constructor(container: XmlNode$2[], node: XmlElement$2, context: SlideContext);
484
+ private live;
485
+ shapes(): OdpShape[];
486
+ addTextBox(init: TextBoxInit): OdpShape;
487
+ addImage(init: SlideImageInit): OdpShape;
488
+ get notes(): string;
489
+ set notes(value: string);
490
+ remove(): void;
491
+ }
492
+ //#endregion
493
+ //#region src/edit/odp/editor.d.ts
494
+ declare class OdpEditor {
495
+ private readonly pkg;
496
+ constructor(pkg: Package$2);
497
+ slides(): OdpSlide[];
498
+ addSlide(): OdpSlide;
499
+ removeSlideAt(index: number): void;
500
+ moveSlide(from: number, to: number): void;
501
+ get slideSize(): PageSize;
502
+ set slideSize(size: PageSize);
503
+ toPackage(): Package$2;
504
+ toBytes(): Uint8Array<ArrayBuffer>;
505
+ }
506
+ declare function openOdp(bytes: Uint8Array<ArrayBuffer>): OdpEditor;
507
+ declare function createOdp(): OdpEditor;
508
+ //#endregion
509
+ //#region src/edit/odp/content.d.ts
510
+ declare function buildOdpPackage(content: ContentDocument): Package$2;
511
+ //#endregion
437
512
  //#region src/pdf/diagnostics.d.ts
438
513
  type PdfDiagnosticSeverity = 'info' | 'warning';
439
514
  interface PdfDiagnostic {
@@ -610,6 +685,9 @@ declare function readPptxContent(pkg: Package$1): ContentDocument;
610
685
  //#region src/odf/odt/read.d.ts
611
686
  declare function readOdtContent(pkg: Package$2): ContentDocument;
612
687
  //#endregion
688
+ //#region src/odf/odp/read.d.ts
689
+ declare function readOdpContent(pkg: Package$2): ContentDocument;
690
+ //#endregion
613
691
  //#region src/pdf/measure.d.ts
614
692
  interface UnderlineMetrics {
615
693
  readonly offsetPt: number;
@@ -659,6 +737,7 @@ interface DocumentToPdfOptions {
659
737
  declare function docxToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
660
738
  declare function odtToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
661
739
  declare function pptxToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
740
+ declare function odpToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
662
741
  interface PdfToDocumentOptions {
663
742
  readonly signal?: AbortSignal;
664
743
  readonly sink?: PdfDiagnosticSink;
@@ -666,14 +745,16 @@ interface PdfToDocumentOptions {
666
745
  declare function pdfToDocx(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
667
746
  declare function pdfToPptx(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
668
747
  declare function pdfToOdt(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
748
+ declare function pdfToOdp(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
669
749
  //#endregion
670
750
  //#region src/convert/codec.d.ts
671
751
  declare const docxPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
672
752
  declare const pptxPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
673
753
  declare const odtPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
754
+ declare const odpPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
674
755
  //#endregion
675
756
  //#region src/convert/port.d.ts
676
- type DocumentFormat = 'docx' | 'pptx' | 'odt' | 'pdf';
757
+ type DocumentFormat = 'docx' | 'pptx' | 'odt' | 'odp' | 'pdf';
677
758
  interface DocumentPayload {
678
759
  readonly format: DocumentFormat;
679
760
  readonly bytes: Uint8Array<ArrayBuffer>;
@@ -716,4 +797,4 @@ declare function fixedClock(date: Date): ClockPort;
716
797
  //#region src/ports/abort.d.ts
717
798
  declare function throwIfAborted(signal: AbortSignal | undefined): void;
718
799
  //#endregion
719
- 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, OdgBytesSchema, OdpBytesSchema, OdsBytesSchema, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit as OdtParagraphInit, OdtRun, type RunInit as OdtRunInit, OdtTable, OdtTableCell, type TableInit as OdtTableInit, OdtTableRow, 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, buildOdtPackage, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, convertPresentationToLayout, convertWordprocessingToLayout, createDocx, createLocalDocumentConverter, createOdt, createPptx, decodeCompactPackage, decodeEntities, decodePackage, docxPdfCodec, docxToPdf, elementsWithTag, encodeCompactPackage, encodePackage, fixedClock, flipY, fromCompact, isCompactXmlNode, isContentBlock, isXmlNode, odtPdfCodec, odtToPdf, openDocx, openOdt, openPptx, packageCodec, parsePackage, parseXml, pdfCodec, pdfToDocx, pdfToOdt, pdfToPptx, pptxPdfCodec, pptxToPdf, readDocxContent, readOdtContent, readPdf, readPptxContent, reconstructPresentation, reconstructWordprocessing, resolveRelationships, rgbHexToColor, rootElement, serializePackage, systemClock, textContent, throwIfAborted, toCompact, unzipPackage, walk, writePdf, xmlCodec, zipPackage };
800
+ 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, OdgBytesSchema, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type TextBoxInit as OdpTextBoxInit, OdsBytesSchema, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit as OdtParagraphInit, OdtRun, type RunInit as OdtRunInit, OdtTable, OdtTableCell, type TableInit as OdtTableInit, OdtTableRow, 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$1 as SlideImageInit, type SlidesLayoutOptions, type TextBoxInit$1 as 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, buildOdpPackage, buildOdtPackage, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, convertPresentationToLayout, convertWordprocessingToLayout, createDocx, createLocalDocumentConverter, createOdp, createOdt, createPptx, decodeCompactPackage, decodeEntities, decodePackage, docxPdfCodec, docxToPdf, elementsWithTag, encodeCompactPackage, encodePackage, fixedClock, flipY, fromCompact, isCompactXmlNode, isContentBlock, isXmlNode, odpPdfCodec, odpToPdf, odtPdfCodec, odtToPdf, openDocx, openOdp, openOdt, openPptx, packageCodec, parsePackage, parseXml, pdfCodec, pdfToDocx, pdfToOdp, pdfToOdt, pdfToPptx, pptxPdfCodec, pptxToPdf, readDocxContent, readOdpContent, readOdtContent, readPdf, readPptxContent, reconstructPresentation, reconstructWordprocessing, resolveRelationships, rgbHexToColor, rootElement, serializePackage, systemClock, textContent, throwIfAborted, toCompact, unzipPackage, walk, writePdf, xmlCodec, zipPackage };
package/dist/index.d.ts CHANGED
@@ -84,7 +84,7 @@ declare const OdpBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<Ar
84
84
  declare const OdgBytesSchema: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
85
85
  //#endregion
86
86
  //#region src/edit/docx/image.d.ts
87
- interface ImageInit$1 {
87
+ interface ImageInit$2 {
88
88
  readonly format: 'png' | 'jpeg';
89
89
  readonly bytes: Uint8Array<ArrayBuffer>;
90
90
  readonly widthPt: number;
@@ -161,7 +161,7 @@ declare class DocxParagraph {
161
161
  set alignment(value: 'left' | 'center' | 'right' | 'justify' | undefined);
162
162
  get list(): ContentListMembership$1 | undefined;
163
163
  set list(value: ContentListMembership$1 | undefined);
164
- insertImageAfter(image: ImageInit$1): void;
164
+ insertImageAfter(image: ImageInit$2): void;
165
165
  remove(): void;
166
166
  }
167
167
  //#endregion
@@ -218,7 +218,7 @@ declare function createDocx(): DocxEditor;
218
218
  declare function buildDocxPackage(content: ContentDocument): Package$1;
219
219
  //#endregion
220
220
  //#region src/edit/pptx/image.d.ts
221
- interface ImageInit {
221
+ interface ImageInit$1 {
222
222
  readonly format: 'png' | 'jpeg';
223
223
  readonly bytes: Uint8Array<ArrayBuffer>;
224
224
  readonly altText?: string;
@@ -253,14 +253,14 @@ interface DrawingParagraphInit {
253
253
  }
254
254
  //#endregion
255
255
  //#region src/edit/pptx/slide.d.ts
256
- interface TextBoxInit {
256
+ interface TextBoxInit$1 {
257
257
  readonly frame: Box;
258
258
  readonly text: string;
259
259
  }
260
- interface SlideImageInit extends ImageInit {
260
+ interface SlideImageInit$1 extends ImageInit$1 {
261
261
  readonly frame: Box;
262
262
  }
263
- interface SlideContext {
263
+ interface SlideContext$1 {
264
264
  readonly pkg: Package$1;
265
265
  readonly slidePartPath: string;
266
266
  readonly mediaDir: string;
@@ -270,11 +270,11 @@ declare class PptxSlide {
270
270
  private readonly node;
271
271
  private readonly context;
272
272
  private removed;
273
- constructor(container: XmlNode$1[], node: XmlElement$1, context: SlideContext);
273
+ constructor(container: XmlNode$1[], node: XmlElement$1, context: SlideContext$1);
274
274
  private live;
275
275
  shapes(): PptxShape[];
276
- addTextBox(init: TextBoxInit): PptxShape;
277
- addImage(init: SlideImageInit): PptxShape;
276
+ addTextBox(init: TextBoxInit$1): PptxShape;
277
+ addImage(init: SlideImageInit$1): PptxShape;
278
278
  get notes(): string;
279
279
  set notes(value: string);
280
280
  remove(): void;
@@ -434,6 +434,81 @@ declare function createOdt(): OdtEditor;
434
434
  //#region src/edit/odt/content.d.ts
435
435
  declare function buildOdtPackage(content: ContentDocument): Package$2;
436
436
  //#endregion
437
+ //#region src/edit/odp/image.d.ts
438
+ interface ImageInit {
439
+ readonly format: 'png' | 'jpeg';
440
+ readonly bytes: Uint8Array<ArrayBuffer>;
441
+ readonly altText?: string;
442
+ }
443
+ //#endregion
444
+ //#region src/edit/odp/shape.d.ts
445
+ declare class OdpShape {
446
+ private readonly container;
447
+ private readonly node;
448
+ private readonly pkg;
449
+ private removed;
450
+ constructor(container: XmlNode$2[], node: XmlElement$2, pkg: Package$2);
451
+ private live;
452
+ get name(): string | undefined;
453
+ get frame(): Box | undefined;
454
+ set frame(value: Box);
455
+ get rotationDeg(): number | undefined;
456
+ set rotationDeg(value: number | undefined);
457
+ private applyGeometry;
458
+ private textBox;
459
+ paragraphs(): OdtParagraph[];
460
+ appendParagraph(init?: ParagraphInit): OdtParagraph;
461
+ get text(): string;
462
+ set text(value: string);
463
+ addList(): OdtList;
464
+ remove(): void;
465
+ }
466
+ //#endregion
467
+ //#region src/edit/odp/slide.d.ts
468
+ interface TextBoxInit {
469
+ readonly frame: Box;
470
+ readonly text: string;
471
+ }
472
+ interface SlideImageInit extends ImageInit {
473
+ readonly frame: Box;
474
+ }
475
+ interface SlideContext {
476
+ readonly pkg: Package$2;
477
+ }
478
+ declare class OdpSlide {
479
+ private readonly container;
480
+ private readonly node;
481
+ private readonly context;
482
+ private removed;
483
+ constructor(container: XmlNode$2[], node: XmlElement$2, context: SlideContext);
484
+ private live;
485
+ shapes(): OdpShape[];
486
+ addTextBox(init: TextBoxInit): OdpShape;
487
+ addImage(init: SlideImageInit): OdpShape;
488
+ get notes(): string;
489
+ set notes(value: string);
490
+ remove(): void;
491
+ }
492
+ //#endregion
493
+ //#region src/edit/odp/editor.d.ts
494
+ declare class OdpEditor {
495
+ private readonly pkg;
496
+ constructor(pkg: Package$2);
497
+ slides(): OdpSlide[];
498
+ addSlide(): OdpSlide;
499
+ removeSlideAt(index: number): void;
500
+ moveSlide(from: number, to: number): void;
501
+ get slideSize(): PageSize;
502
+ set slideSize(size: PageSize);
503
+ toPackage(): Package$2;
504
+ toBytes(): Uint8Array<ArrayBuffer>;
505
+ }
506
+ declare function openOdp(bytes: Uint8Array<ArrayBuffer>): OdpEditor;
507
+ declare function createOdp(): OdpEditor;
508
+ //#endregion
509
+ //#region src/edit/odp/content.d.ts
510
+ declare function buildOdpPackage(content: ContentDocument): Package$2;
511
+ //#endregion
437
512
  //#region src/pdf/diagnostics.d.ts
438
513
  type PdfDiagnosticSeverity = 'info' | 'warning';
439
514
  interface PdfDiagnostic {
@@ -610,6 +685,9 @@ declare function readPptxContent(pkg: Package$1): ContentDocument;
610
685
  //#region src/odf/odt/read.d.ts
611
686
  declare function readOdtContent(pkg: Package$2): ContentDocument;
612
687
  //#endregion
688
+ //#region src/odf/odp/read.d.ts
689
+ declare function readOdpContent(pkg: Package$2): ContentDocument;
690
+ //#endregion
613
691
  //#region src/pdf/measure.d.ts
614
692
  interface UnderlineMetrics {
615
693
  readonly offsetPt: number;
@@ -659,6 +737,7 @@ interface DocumentToPdfOptions {
659
737
  declare function docxToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
660
738
  declare function odtToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
661
739
  declare function pptxToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
740
+ declare function odpToPdf(bytes: Uint8Array<ArrayBuffer>, options?: DocumentToPdfOptions): Uint8Array<ArrayBuffer>;
662
741
  interface PdfToDocumentOptions {
663
742
  readonly signal?: AbortSignal;
664
743
  readonly sink?: PdfDiagnosticSink;
@@ -666,14 +745,16 @@ interface PdfToDocumentOptions {
666
745
  declare function pdfToDocx(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
667
746
  declare function pdfToPptx(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
668
747
  declare function pdfToOdt(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
748
+ declare function pdfToOdp(bytes: Uint8Array<ArrayBuffer>, options?: PdfToDocumentOptions): Uint8Array<ArrayBuffer>;
669
749
  //#endregion
670
750
  //#region src/convert/codec.d.ts
671
751
  declare const docxPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
672
752
  declare const pptxPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
673
753
  declare const odtPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
754
+ declare const odpPdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
674
755
  //#endregion
675
756
  //#region src/convert/port.d.ts
676
- type DocumentFormat = 'docx' | 'pptx' | 'odt' | 'pdf';
757
+ type DocumentFormat = 'docx' | 'pptx' | 'odt' | 'odp' | 'pdf';
677
758
  interface DocumentPayload {
678
759
  readonly format: DocumentFormat;
679
760
  readonly bytes: Uint8Array<ArrayBuffer>;
@@ -716,4 +797,4 @@ declare function fixedClock(date: Date): ClockPort;
716
797
  //#region src/ports/abort.d.ts
717
798
  declare function throwIfAborted(signal: AbortSignal | undefined): void;
718
799
  //#endregion
719
- 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, OdgBytesSchema, OdpBytesSchema, OdsBytesSchema, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit as OdtParagraphInit, OdtRun, type RunInit as OdtRunInit, OdtTable, OdtTableCell, type TableInit as OdtTableInit, OdtTableRow, 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, buildOdtPackage, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, convertPresentationToLayout, convertWordprocessingToLayout, createDocx, createLocalDocumentConverter, createOdt, createPptx, decodeCompactPackage, decodeEntities, decodePackage, docxPdfCodec, docxToPdf, elementsWithTag, encodeCompactPackage, encodePackage, fixedClock, flipY, fromCompact, isCompactXmlNode, isContentBlock, isXmlNode, odtPdfCodec, odtToPdf, openDocx, openOdt, openPptx, packageCodec, parsePackage, parseXml, pdfCodec, pdfToDocx, pdfToOdt, pdfToPptx, pptxPdfCodec, pptxToPdf, readDocxContent, readOdtContent, readPdf, readPptxContent, reconstructPresentation, reconstructWordprocessing, resolveRelationships, rgbHexToColor, rootElement, serializePackage, systemClock, textContent, throwIfAborted, toCompact, unzipPackage, walk, writePdf, xmlCodec, zipPackage };
800
+ 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, OdgBytesSchema, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type TextBoxInit as OdpTextBoxInit, OdsBytesSchema, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit as OdtParagraphInit, OdtRun, type RunInit as OdtRunInit, OdtTable, OdtTableCell, type TableInit as OdtTableInit, OdtTableRow, 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$1 as SlideImageInit, type SlidesLayoutOptions, type TextBoxInit$1 as 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, buildOdpPackage, buildOdtPackage, buildPptxPackage, buildXml, bytesToBase64, childrenWithTag, compactCodec, compactPackageCodec, convertPresentationToLayout, convertWordprocessingToLayout, createDocx, createLocalDocumentConverter, createOdp, createOdt, createPptx, decodeCompactPackage, decodeEntities, decodePackage, docxPdfCodec, docxToPdf, elementsWithTag, encodeCompactPackage, encodePackage, fixedClock, flipY, fromCompact, isCompactXmlNode, isContentBlock, isXmlNode, odpPdfCodec, odpToPdf, odtPdfCodec, odtToPdf, openDocx, openOdp, openOdt, openPptx, packageCodec, parsePackage, parseXml, pdfCodec, pdfToDocx, pdfToOdp, pdfToOdt, pdfToPptx, pptxPdfCodec, pptxToPdf, readDocxContent, readOdpContent, readOdtContent, readPdf, readPptxContent, reconstructPresentation, reconstructWordprocessing, resolveRelationships, rgbHexToColor, rootElement, serializePackage, systemClock, textContent, throwIfAborted, toCompact, unzipPackage, walk, writePdf, xmlCodec, zipPackage };