AltTextPatch
Import from @reductoai/pptx/editor.
AltTextView
The one selected object’s alt text.
Import from @reductoai/pptx/editor.
CellMargins
Import from @reductoai/pptx/editor.
FontBytes
Import from @reductoai/pptx-editor.
type FontBytes = (id: string) => Uint8Array | null | undefinedOutlineParagraph
One outline line under a slide’s title: a paragraph of a body placeholder.
Import from @reductoai/pptx/editor.
ParagraphAlign
Import from @reductoai/pptx/editor.
type ParagraphAlign = "Left" | "Center" | "Right" | "Justify"ParagraphSpacing
before and after in points. Indentation, also in points: leftIndent is Before text
(marL); firstLineIndent is First line, or negative for Hanging (indent).
Import from @reductoai/pptx/editor.
| Name | Type | Description |
|---|---|---|
after? |
number |
|
before? |
number |
|
firstLineIndent? |
number |
|
leftIndent? |
number |
|
line? |
LineSpacing |
PastedRun
One run of pasted text; a paragraph break is \r inside text.
Import from @reductoai/pptx/editor.
| Name | Type | Description |
|---|---|---|
format? |
TextFormat |
|
href? |
string |
|
text |
string |
TextAnchor
Import from @reductoai/pptx/editor.
type TextAnchor = "top" | "middle" | "bottom"TextAutofit
Format Shape > Text Box > Autofit: Do not Autofit, Shrink text on overflow, Resize shape to fit text.
Import from @reductoai/pptx/editor.
type TextAutofit = "none" | "shrink" | "resize"TextBoxOptions
Format Shape > Text Box: autofit, the four margins in points and Wrap text in shape.
Import from @reductoai/pptx/editor.
| Name | Type | Description |
|---|---|---|
autofit |
TextAutofit |
|
bottom |
number |
|
left |
number |
|
right |
number |
|
top |
number |
|
wrap |
boolean |
TextCase
Change Case: a word in capitals stays, as an acronym.
Import from @reductoai/pptx/editor.
type TextCase = "sentence" | "lower" | "upper" | "capitalize" | "toggle"TextColumns
Columns in a text frame; spacing is the gap between them in points.
Import from @reductoai/pptx/editor.
TextDirection
Import from @reductoai/pptx/editor.
type TextDirection = "horizontal" | "rotate90" | "rotate270" | "stacked"TextFormat
Import from @reductoai/pptx/editor.