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
Rotate text for table header #1140
Comments
Hi @Tomnl Thank you for reaching out and suggesting this feature. I think it could be a handy addition. Regarding how this feature would operate, I'm not sure that In order to build the final table-related feature, a first "building-block" would be to be able to render some text block (with Also, we actually have too few unit tests regarding the rotation of text content, i.e. combining |
Thanks for the quick reply @Lucas-C.
I agree that seems to be the logical place to add it
So am I correct in thinking that within the
Not sure how much help I can bring. But maybe I can contribute a unit test first to help me understand the code base a bit better and then see what I could contribute! |
Yes, I think that could be handy.
Yes, that would be the simplest way to implement it, and I do not see any issue with using this approach.
That would be very welcome! 🙂 |
I fully agree: we can start with a basic (limited) implementation for now, but keep in mind how it could be generalized later on 😊 |
Please explain your intent
I would like to rotate text for a table header. In particular, have the heading text rotated so that it vertical in the table.
As far as I can tell this not currently possible.
Describe the solution you'd like
When using the
pdf.table
functionality as described in the docs, it would be great if there was a way to rotate the text in the cells (particulary for the table header).Wishful thinking... but perhaps defined something like this
I have looked into using the
pdf.rotation
approach described here but it does not seem compatible withpdf.table
e.g. the following
row.cell
will not be changed by the pdf.rotation (and would be difficult to know the x and y coordinates to use anyway)Additional context
See below for example format (not produced by fpdf2) to clarify the format I am referring to.
ref
The text was updated successfully, but these errors were encountered: