-
Notifications
You must be signed in to change notification settings - Fork 232
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
Can i change the vertical space between lines inside a table? #1024
Comments
Have you tried passing cf. https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.table |
Feedbacks and extra questions are welcome regarding this 😊 But without any answer from you we will close this issue at some point. |
Hi @Lucas-C, sorry for the delay in my response. I tried what you suggested: with self.table(
headings_style=FontFace(fill_color=235), line_height=10
) as table:
for data_row in table_data:
table.row(data_row) but it does not really solve the issue, I noticed that this is enough if the text has only one line, then the spacing between the text and the table border is smaller, but when I have a multiple line text as in this example, the vertical distance between the lines of text is still quite big. |
OK. However, if you want control over the line height on a per-row or per-cell basis, this is currently not supported. |
I think it would be a nice feature to have. In the pdf file I uploaded as an example, I think it's weird that there is so much space between each line of text, but when I look at the padding documentation images in the link you provided there seems to be not much space between the lines inside a call in the table, I wonder why. Maybe it's the font I am using? |
In Have you tried to lower the value of |
Oh I misunderstood, I assumed |
Great, glad that helped you 😊 |
Hi, is it possible to modify the vertical space in between the lines of a text in a table? For example with the following snippet:
test.pdf
I think the vertical space between lines in the second column are a little too big, I would like to make it smaller. Thanks in advance for the help.
The text was updated successfully, but these errors were encountered: