Open NyoriK opened 3 years ago
Hi,
I have this as the current pdf file:
I would like to have some padding around the text, and also have the text cover the full width of the row/page. Like this:
This is the full code -> Gist file.
I didn't find padding options in the styles documentation. Is there any way to achieve this format?
{ canvas: [{ type: 'rect', x: 0, y: 0, w: 520, h: 50, color: '#2c96d0' }] }, { text: 'START', color: '#e4ebef', alignment: 'center', margin: [0, -32, 0, 0] }, tente desse jeito ;)
{ canvas: [{ type: 'rect', x: 0, y: 0, w: 520, h: 50, color: '#2c96d0' }] }, { text: 'START', color: '#e4ebef', alignment: 'center', margin: [0, -32, 0, 0] },
Hi,
I have this as the current pdf file:
I would like to have some padding around the text, and also have the text cover the full width of the row/page. Like this:
This is the full code -> Gist file.
I didn't find padding options in the styles documentation. Is there any way to achieve this format?