Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to calculate the column width dynamically? #21

Open
NayabHussain opened this issue Apr 24, 2018 · 1 comment
Open

How to calculate the column width dynamically? #21

NayabHussain opened this issue Apr 24, 2018 · 1 comment

Comments

@NayabHussain
Copy link

like we have calcDimensions(width) method, here we need to specify column width to get column height , But now we want column width dynamically

@GlenKPeterson
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants