simonbengtsson / jsPDF-AutoTable

jsPDF plugin for generating PDF tables with javascript
https://simonbengtsson.github.io/jsPDF-AutoTable/
MIT License
2.33k stars 624 forks source link

Some columns are shrinked because of large texts in some columns #1061

Closed urenpatelce closed 4 months ago

urenpatelce commented 4 months ago

We observed that when there are more than 10 columns and if any 1 or 2 columns are having big text which is not having any whitespace like GUID or InstanceID then some columns are getting very little space to render the content and the side effect is large size report and unusable as well. Please check the screenshot below:

image

urenpatelce commented 4 months ago

I think with dynamic or automatic scaling as well, some min width should be given to each column automatically.

mmghv commented 4 months ago

Duplicate of #1018

This should be fixed by #1053 in the unreleased v4 branch, you can test it out yourself or if you provide a reproducible example I could test it locally and share the results.

Although in the attached screenshot I don't see any single long-text column, maybe the content is too much for this size, nonetheless, I'm curious to see the effect of the new algorithm.