I need to align a table to the right side of a page, is this possible with pdfmake?
Table alignment is problematic because there is https://github.com/bpampuch/pdfmake/issues/72, but can be used workaround:
var dd = {
content: [
{
columns: [
{ width: '*', text: '' },
{
width: 'auto',
table: {
body: [
['Column 1', 'Column 2', 'Column 3'],
['One value goes here', 'Another one here', 'OK?']
]
}
}
]
}
]
}
Greate. Thank you for the workaround
Thank you, this worked for me.
Thank you, works!
Also you can use
[
co1,
{
text: "right value",
alignment: "right"
},
{
text: "right value",
alignment: "right"
},
{
text: "right value",
alignment: "right"
}
]
Most helpful comment
Table alignment is problematic because there is https://github.com/bpampuch/pdfmake/issues/72, but can be used workaround: