voilab / voilab-pdf-table

PdfKit wrapper that helps to draw informations in simple tables
MIT License
52 stars 26 forks source link

Fixed padding issues #3

Closed MichielDeMey closed 7 years ago

MichielDeMey commented 7 years ago

This PR improves padding on your tables and allows them to look more like tables.

Output

Using the README example and the following defaults

.setColumnsDefaults({
  headerBorder: 'TRBL',
  border: 'TRBL',
  align: 'right',
  padding: [ 50, 10, 0, 10 ],
  headerPadding: [ 5, 10 ]
})

Original

image

With padding improvements

image

tafel commented 7 years ago

It has been a while, sorry for the latency :-) ... I checked the code and it's ok. I just added a second comment on the last line. I let you finalize the pull request so I can merge it.

tafel commented 7 years ago

Integrated in 0.4.0 release. Thank you!