DrTrans Posted May 12, 2010 Share Posted May 12, 2010 Ok im trying to make the following maybe someone here can assist. <td><b><center><font color=\"white\">Applicant Detail</center></font></b></td> </table> <b>Name: $fullname ( $fname, $lname ) <br> <b>Address: $addy<br> <b>City: $city State: $state Zip: $zip<br> Basically what i want to do is make the system spit out a pdf of that information.. $pdf=new FPDF(); $pdf->AddPage(); $pdf->SetFont('Arial','B',16); $pdf->Cell(40,10,'Appplication',1,1,'C'); $pdf->text($fullname); $pdf->Output('c:\printapp\test1.pdf'); [/php/ I also want to be able to save the file as the $firstname-$lastname.pdf i cant figure this out. can someone please assist me with the line breaks and getting it formatted correctly. Thanks Link to comment https://forums.phpfreaks.com/topic/201506-fpdf-php/ Share on other sites More sharing options...
andrewgauger Posted May 13, 2010 Share Posted May 13, 2010 I know this isn't what you are asking for, but this is the route that I would have gone: http://www.pdflib.com/ Link to comment https://forums.phpfreaks.com/topic/201506-fpdf-php/#findComment-1057561 Share on other sites More sharing options...
Mchl Posted May 13, 2010 Share Posted May 13, 2010 I dropped entirely using $pdf->text(). Instead I use Cell() and MultiCell() (where multi line output is needed). And if you're not too far into this project, I suggest moveing to different library, like tcpdf. FPDF had it's time. Link to comment https://forums.phpfreaks.com/topic/201506-fpdf-php/#findComment-1057612 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.