Open NayabHussain opened 6 years ago
I've been thinking about something like that. Specify the max-width for the table, then have the table analyze the minimum and maximum widths for each column. If all the minimum widths fit, just use those. Otherwise, use maybe the ratio of maximum widths or the ratio of the average of min/max widths for the columns to be the column sizes.
In any case, new development is going into https://github.com/PlanBase/PdfLayoutMgr2 instead of this project. It's been completely rewritten using Kotlin, preferring immutability where practical, using an improved line-breaking algorithm, and adding a page-breaking algorithm. PlanBase completely financed work on v2, so they should be allowed to profit from it. They plan to sell subscriptions to early adoptors at very reasonable rates. This feature you are requesting is already on a short list of likely enhancements to that project. If you become a paid user and request it there, that will move it up the queue.
like we have calcDimensions(width) method, here we need to specify column width to get column height , But now we want column width dynamically