Tables

PowerPoint tables are shapes with a table object behind them. Create a table with slide.shapes.addTable:

const shape = slide.shapes.addTable(4, 3, {
  left: 80,
  top: 120,
  width: 520,
  height: 180,
  values: [
    ["Metric", "Q3", "Q4"],
    ["Revenue", "25", "31"],
    ["Margin", "39%", "43%"],
    ["Customers", "118", "144"]
  ]
});
const table = shape.getTable();

Cells

Cells expose text, fills, font, borders, margins, alignment, row/column spans, and split/resize operations:

const cell = table.getCellOrNullObject(0, 0);
cell.fill.setSolidColor("#1F2937");
cell.font.color = "#FFFFFF";
cell.font.bold = true;

Rows and columns

Use row and column collections to add, delete, size, or inspect table structure:

table.rows.add(1, { values: [["Forecast", "34", "45%"]] });
table.columns.getItemAt(1).width = 110;

Merges and clearing

table.mergeCells(table.getCellOrNullObject(0, 0), table.getCellOrNullObject(0, 2));
table.clear({ contents: false, formatting: true });

Merged areas can be inspected with getMergedAreas().

Rendering

The slide renderer draws table geometry, fills, borders, cell text, rich text runs, and merged cells as part of the full slide image. Use Render for visual verification.