42BV / pdf-library

Toucan-PDF
http://www.toucanpdf.org
9 stars 3 forks source link

Specified cell widths are not being maintained #42

Closed DylanDeWolff closed 9 years ago

DylanDeWolff commented 9 years ago

Currently specified cell widths are not being properly taken into account by the library, cell widths will often exceed the width specified by the user. It's likely that this is caused by the addition of remaining width if the table cells do not occupy the entire page width.

DylanDeWolff commented 9 years ago

Caused by the max width calculation method and spread remaining width methods in the table class. The former did not ignore the size of the cell content in case the cell width was specified, the latter spread width over all columns instead of only the ones without a specified width.