constructor(document, opts = {}) {
    this.document = document;
    this.opts = Object.freeze(opts);

    normalizeTable.call(this);
    accommodateTable.call(this);

    this._currRowIndex = 0;
    this._ended = false;

    // Render cells if present
    if (opts.data) {
      for (const row of opts.data) this.row(row);
      return this.end();
    }
  }
@param {PDFDocument} document
@param {Table} [opts]