From f54cc415a87352a39a64f65fe8a4354ae13efd9e Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Fri, 13 Jan 2017 12:43:05 +0530 Subject: added multicell for large text wrapping --- pdf/generate_pdf.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pdf/generate_pdf.inc b/pdf/generate_pdf.inc index 5dd91c5..65e0bef 100755 --- a/pdf/generate_pdf.inc +++ b/pdf/generate_pdf.inc @@ -85,13 +85,15 @@ function generate_pdf() $pdf->SetFont('Arial', 'I', 12); if (strtolower($data3->branch) != "others") { $pdf->SetTextColor(0, 0, 0); - $pdf->Cell(240, 8, 'from ' . $data3->university . ' has successfully', '0', '1', 'C'); + //$pdf->Cell(240, 8, 'from ' . $data3->university . ' has successfully', '0', '1', 'C'); + $pdf->MultiCell(240, 8, 'from ' . $data3->university . ' has successfully', '0','C'); $pdf->Ln(0); $pdf->Cell(240, 8, 'completed Internship under DWSIM Textbook Companion', '0', '1', 'C'); $pdf->Ln(0); $pdf->Cell(240, 8, 'He/she has coded ' . $number_of_example . ' solved examples using DWSIM from the', '0', '1', 'C'); $pdf->Ln(0); - $pdf->Cell(240, 8, 'Book: ' . $data2->book . ', Author: ' . $data2->author . '.', '0', '1', 'C'); + //$pdf->Cell(240, 8, 'Book: ' . $data2->book . ', Author: ' . $data2->author . '.', '0', '1', 'C'); + $pdf->MultiCell(240, 8, 'Book: ' . $data2->book . ', Author: ' . $data2->author . '.', '0','C'); $pdf->Ln(0); } //strtolower($data3->branch) != "others" else { -- cgit