You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I waffled on whether to call this a bug or feature request. I think it would be ideal to use the style provided when building a table Cell, if given, even when the cell is in a header row. As far as I can tell, the header style is always used. This makes it impossible (I think?) to have multiple header rows, but with different styles. I want to be able to do this because I want borders underneath each header line, but I want to style the two header rows differently.
Thanks for this enhancement suggestion. (I've removed the "bug" label, since it currently seems to be working as documented.)
The possibility to have multiple header lines was just recently added, and the formatting method has not been updated at that point.
I agree that your suggestion would make a lot of sense. If the style supplied to an individual cell always overrides the more general settings, then that gives the user additional and more flexible options. Varying eg. the background color of heading cells depending on row and/or column can be quite helpful in terms of readability.
If you think you're up to it, you're welcome to submit a PR with a fix.
Describe the bug:
I waffled on whether to call this a bug or feature request. I think it would be ideal to use the style provided when building a table Cell, if given, even when the cell is in a header row. As far as I can tell, the header style is always used. This makes it impossible (I think?) to have multiple header rows, but with different styles. I want to be able to do this because I want borders underneath each header line, but I want to style the two header rows differently.
Minimal code
Environment
Please provide the following information:
fpdf2
version used: 2.7.6The text was updated successfully, but these errors were encountered: