I am trying to make a pdf from the data entered by the user in a form. I am using fpdf to do this. As of now I have something like this for adding the data to the pdf -
$pdf->Cell(40,200,'Descritpion');
$pdf->Cell(150,200,$_POST['element_1']);
$pdf->Cell(40,400,'Descritpion2');
$pdf->Cell(150,400,$_POST['element_2']);
This does work but what I want to know is how can I add these to the pdf without specifying the location. As you can see in the above code I am mentioning where the data should be in the pdf but I want to know if there is a way to do it without specifying them. i.e the description1 and element_1 should be on the first few lines and description2 should start of where element_1 ends.