json-to-pdf icon indicating copy to clipboard operation
json-to-pdf copied to clipboard

how to make multiple lines in a table cell

Open juanbill opened this issue 9 years ago • 1 comments

Hi:

I'm using your library to create a letter head. Playing around with table for layout, how do you make multiple lines in a cell (for example name + line break + address + line break + phone number)? I tried multiple paragraphs in the cell to make multiples with no success.

Alternatively, if I used the cells for a new lines, how do I shrink the cell spacing/padding?

Thanks Juan.

juanbill avatar Jun 18 '15 06:06 juanbill

A list would probably be the simplest solution:

[{"title":"My document"}, 
["table",
 [["cell", ["list", {"symbol": ""}, "item", "another item", "yet another item"]]
, "bar", "baz"]]] 

yogthos avatar Jun 18 '15 11:06 yogthos