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

Add fixed row height to table (with text truncation) #158

Open
davidhakki opened this issue Aug 20, 2019 · 14 comments
Open

Add fixed row height to table (with text truncation) #158

davidhakki opened this issue Aug 20, 2019 · 14 comments

Comments

@davidhakki
Copy link

Is there any way to disable word wrapping, and either making it so it has ..., reduce text size or nothing at all.

@philprime
Copy link
Member

Basically limiting the height of a cell an truncating the text?

@davidhakki
Copy link
Author

Yes i knew there was a word for it, does such options exist presently?

@philprime
Copy link
Member

No it does not exist yet, but this sounds like a useful setting, as I am working on an improved table algorithm anyways (#41) therefore I will convert this issue in a feature request

@philprime philprime changed the title Is there a way to have hard limits for cells (ie no word wrapping) Add fixed row height to table (with text truncation) Aug 23, 2019
@96kaitlinburke
Copy link

96kaitlinburke commented Feb 4, 2020

What's the progress on this? I'm trying to find a way to create a table with square cells, and it doesn't seem like there's currently a way to do this since the cell heights can't be set.

@philprime
Copy link
Member

As of now, the new table logic is pre-release/released in 2.0.0.
Therefore this is where we could start of implementing this feature

@marioradonic
Copy link

@philprime Is this something you're still interested in? I need something similar like this, so I've started working on a solution, if you want I can create a draft PR with it. Basically, I've added the heights property to the table similar to widths, so that you can set relative row heights for a full-page table.

@philprime
Copy link
Member

I am always happy to review PRs :)

@theolampert
Copy link

theolampert commented Dec 6, 2021

@philprime @marioradonic Did you two make it any further on this feature? Is there an example or branch somewhere I can take a look at? We also need this functionality so I'd be happy to contribute to this feature if either of you pointed me in the right direction.

Edit: I found a commit here that looks like it marioradonic@19a1379

@philprime
Copy link
Member

Hi @theolampert there hasn't been any progress from my side, but still I am happy to review PRs or guide any contribution :)

@theolampert
Copy link

@philprime Looking into the problem a bit more today I would actually need to support fixed width and height cells for a specific label printing spec rather than relative heights and widths. I'm thinking that TPPDF might not the right library to try to do this and rather implement the functionality with Core Graphics.

@CodeSales
Copy link

Hello, how is this issue going?

@brendand
Copy link
Contributor

I would also love this feature. Could the code from @marioradonic be merged in with master?

@philprime
Copy link
Member

I am happy to review any proposed solutions, and even using existing code ideas to implement this. Where can I find the progress of @marioradonic?

@brendand
Copy link
Contributor

brendand commented Dec 3, 2022

I am happy to review any proposed solutions, and even using existing code ideas to implement this. Where can I find the progress of @marioradonic?

I found it a bit higher up in the thread:

marioradonic@19a1379

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

No branches or pull requests

7 participants