hhurz / tableExport.jquery.plugin

jQuery plugin to export a html table to JSON, XML, CSV, TSV, TXT, SQL, Word, Excel, PNG and PDF
MIT License
983 stars 714 forks source link

pdfmake - text alignments for table cell #379

Open blendxorz opened 5 months ago

blendxorz commented 5 months ago

Hi,

I would like to be able to control the text alignment for columns in the body. For example in the snippet below, I would like to have the data for "Date", "Start Time" and "End Time" to be right aligned. The data for "Owner Name" should be left aligned. The headers should remain center aligned. Is this possible?

image

hhurz commented 5 months ago

As of version 1.30, the PDF export with pdfmake now also takes into account some style attributes from the html table to be exported: alignment, background color, color, font style