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

NameTypeAccessDescription
image: { built: BuiltImage; width: number; height: number; opts: CellImageOptions }Read/WriteA cached cell image (from {@link setImage}) with intrinsic pixel size, or undefined.
built: BuiltImageReadGets the built.
width: numberReadGets the width.
height: numberReadGets the height.
opts: CellImageOptionsReadGets the opts.

Methods

SignatureDescription
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)thisEmbed data (JPEG/PNG) in this cell, aspect-fit to the cell box.