voilab / voilab-pdf-table

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

Error with table.addBody(tableBody) #11

Open Spandana-Gajangi opened 7 years ago

Spandana-Gajangi commented 7 years ago

code": 500, "message": "unsupported number: NaN", "stack": "Error: unsupported number: NaN\n at PDFObject.number (

tafel commented 7 years ago

Please provide more information.

yocontra commented 6 years ago

You have to specify the width of the column - in the readme example, this is done with the fit column plugin, so you either have to use that or specify it manually.

tafel commented 6 years ago

I will update the readme to clarify this. In fact, the readme is correct, because the column without width is the column configured in the fitcolumn plugin, so its width is automatically calculated.