title: how to horizontally center a table in pdfkmake when it does not occupy the entire width
body: <p>The totals text is centered horizontally, I would like to center the table so that both sides have the same space</p>
  <p><a href="https://i.stack.imgur.com/zXbHG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zXbHG.png" alt="enter image description here" /></a></p>
  <pre><code>generatePdf(template: ElementRef): any {
      const pdfTable = template.nativeElement;
  
      const html: Array&lt;any&gt; = htmlToPdfmake(pdfTable.innerHTML);
      html.forEach((item) =&gt; {
          item.style = ['tableCenter'];
      });
      console.log(html);
  
      const documentDefinition = {
          content: html,
          pageSize: 'A3',
          pageOrientation: 'landscape',
          styles: {
              tableCenter: {
                  alignment: 'center',
                  absolutePosition: { x: 10, y: 35 },
              },
          },
      };
      return pdfMake.createPdf(documentDefinition);
  }
  </code></pre>
  <p>I am using html as a template for the pdf</p>