I am using the multi_cell()
function from FPDF in Python.
However every time I call it I just get a blank space where the cell should be. If however I call cell()
it displays the cell.
Code
See two examples below.
- Blank space with:
pdf.multi_cell(25,cell_height,ticket_no,1,0,"J",1)
- Cell populated with data with
pdf.cell(25,cell_height,ticket_no,1,0,"L",1)
Anyone got an idea what is going on here?
Assuming PyFPDF, then
cell()
andmulti_cell()
take different parameters:Cell:
MultiCell:
Multi_cell doesn't take
ln
, so by keeping that in, you end up shifting some of the parameters right by one, and saying:instead of