diff options
author | Sashi20 | 2019-07-17 16:15:40 +0530 |
---|---|---|
committer | Sashi20 | 2019-07-17 16:15:40 +0530 |
commit | 498f4ec1e1b09d4d2c33f4cbfde5a16e46483a40 (patch) | |
tree | a71f1878020c2ac79316d5f8d7731a4c71d3bacd | |
parent | 48699b1ccd22d74e0fde2d544d354576a6ea99db (diff) | |
download | r_textbook_companion-498f4ec1e1b09d4d2c33f4cbfde5a16e46483a40.tar.gz r_textbook_companion-498f4ec1e1b09d4d2c33f4cbfde5a16e46483a40.tar.bz2 r_textbook_companion-498f4ec1e1b09d4d2c33f4cbfde5a16e46483a40.zip |
Add wordwrap function to university in certificate
-rwxr-xr-x | pdf/generate_pdf.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/generate_pdf.inc b/pdf/generate_pdf.inc index 524e0e9..0748fc2 100755 --- a/pdf/generate_pdf.inc +++ b/pdf/generate_pdf.inc @@ -85,7 +85,7 @@ function generate_pdf() $pdf->SetFont('Times', 'I', 16); $pdf->SetTextColor(0, 0, 0); //$pdf->Cell(240, 8, 'from ' . $data3->university . ' has successfully', '0', '1', 'C'); - $pdf->MultiCell(320, 10, 'from "' . $data3->university . '" has successfully completed a', '0','C'); + $pdf->MultiCell(320, 10, wordwrap('from "' . $data3->university . '" has successfully completed a', 80), '0','C'); $pdf->Ln(0); $pdf->MultiCell(320, 10, 'R textbook companion by coding "' . $number_of_example . '" examples from the book', '0', 'C'); $pdf->Ln(0); |