Closed tekkadan95 closed 2 weeks ago
Let me introduce you to our table
feature, it will definitely make your life easier.
You can replace most of your code by something like this:
with pdf.table(
width=180,
col_widths=(10, 70, 20, 30, 20, 30),
text_align=("C", "L", "R", "R", "C", "R"),
) as table:
for product in products:
row = table.row()
for field in product:
row.cell(field)
@tekkadan95 please let us know if that solution works for you and we can close the issue.
No comment received for 2 months. I'm closing this now
I am struggling to handle pagebreaks with multicell tables.
As you can see the rest of the row gets printed on the y position of the next page, not the first one.
I am using user input from a pyqt application. This is my code snippet from the application:
the second part is a minimal reproducible example to highlight the problem. I don't know if I have a logic error, or fpdf is not viable for this approach. This is something for an invoice generator.
thanks in advance for any tips/help