CellBuilder
Overview
CellBuilder is a class in Aspose.PDF FOSS for TypeScript.
One cell in a table row: a text string, optional per-cell style, and how many columns it spans.
This class declares 2 methods for CellBuilder objects in TypeScript programs.
Available methods include: constructor, setImage.
All public members are accessible to any TypeScript application after installing the Aspose.PDF FOSS for TypeScript package.
Properties: built, height, image, opts, width.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
image | : { built: BuiltImage; width: number; height: number; opts: CellImageOptions } | Read/Write | A cached cell image (from {@link setImage}) with intrinsic pixel size, or undefined. |
built | : BuiltImage | Read | Gets the built. |
width | : number | Read | Gets the width. |
height | : number | Read | Gets the height. |
opts | : CellImageOptions | Read | Gets the opts. |
Methods
| Signature | Description |
|---|---|
constructor(text: string | TextRun[], options: CellTextOptions, colSpan: number, rowSpan: number, header: CellHeader) | Calls constructor(text, options, colSpan, rowSpan, header) on this CellBuilder instance. |
setImage(data: Uint8Array, opts: CellImageOptions) → this | Embed data (JPEG/PNG) in this cell, aspect-fit to the cell box. |