diff options
author | Sashi20 | 2020-09-23 14:48:47 +0530 |
---|---|---|
committer | GitHub | 2020-09-23 14:48:47 +0530 |
commit | b3acdc4539f088b203d59883df8b91957509fc40 (patch) | |
tree | 3dfcb5cadee5a74f425a6369aa6502c4b8027c7f /pdf/mentor_cert_pdf.inc | |
parent | b4ebfa8693d446d1919c4174e20a75588304d29b (diff) | |
parent | af61deb92c79854fe4b226b04c7acd2cc18a5b91 (diff) | |
download | dwsim_flowsheet-b3acdc4539f088b203d59883df8b91957509fc40.tar.gz dwsim_flowsheet-b3acdc4539f088b203d59883df8b91957509fc40.tar.bz2 dwsim_flowsheet-b3acdc4539f088b203d59883df8b91957509fc40.zip |
Merge pull request #47 from Sashi20/drupal_7.x
Update the page width and height functions in mentor certificate
Diffstat (limited to 'pdf/mentor_cert_pdf.inc')
-rwxr-xr-x | pdf/mentor_cert_pdf.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pdf/mentor_cert_pdf.inc b/pdf/mentor_cert_pdf.inc index a409f9a..4d6687e 100755 --- a/pdf/mentor_cert_pdf.inc +++ b/pdf/mentor_cert_pdf.inc @@ -35,7 +35,7 @@ function generate_pdf() } //!$pdf $pdf->AddPage(); $image_bg = $mpath . "/pdf/images/bg_cert_mentor.png"; - $pdf->Image($image_bg, 0, 0, $pdf->w, $pdf->h); + $pdf->Image($image_bg, 0, 0, $pdf->GetPageWidth(), $pdf->GetPageHeight()); $pdf->SetMargins(18, 1, 18); $path = drupal_get_path('module', 'dwsim_flowsheet'); $pdf->Ln(15); @@ -46,7 +46,7 @@ function generate_pdf() $pdf->Ln(-6); $pdf->SetFont('Times', 'BI', 16); $pdf->SetTextColor(13, 5, 130); - $pdf->Cell(240, 8, $data3->project_guide_name, '0', '1', 'C'); + $pdf->Cell(240, 8, utf8_decode($data3->project_guide_name), '0', '1', 'C'); $pdf->Ln(0); $pdf->SetFont('Times', 'I', 12); if (strtolower($data3->branch) != "others") { @@ -55,20 +55,20 @@ function generate_pdf() $pdf->Cell(240, 8, 'from', '0', '1', 'C'); $pdf->Ln(0); $pdf->SetFont('Times','BI',16); - $pdf->Cell(240, 8, $data3->project_guide_university, '0','1','C'); + $pdf->Cell(240, 8, utf8_decode($data3->project_guide_university), '0','1','C'); $pdf->Ln(0); $pdf->SetFont('Times', 'I', 12); $pdf->Cell(240, 8, 'who has mentored', '0', '1', 'C'); $pdf->Ln(0); $pdf->SetFont('Times', 'BI', 16); - $pdf->Cell(240, 8, $data3->contributor_name, '0', '1', 'C'); + $pdf->Cell(240, 8, utf8_decode($data3->contributor_name), '0', '1', 'C'); $pdf->Ln(0); $pdf->SetFont('Times', 'I', 12); $pdf->Cell(240, 8, 'for successfully completing internship under the DWSIM Flowsheeting project. The intern(s) has created a flowsheet titled', '0', '1', 'C'); $pdf->Ln(0); $pdf->SetFont('Times', 'BI', 16); $pdf->SetTextColor(13, 5, 130); - $pdf->Cell(240, 8, $data3->project_title, '0', '1', 'C'); + $pdf->Cell(240, 8, utf8_decode($data3->project_title), '0', '1', 'C'); $pdf->SetTextColor(13, 5, 130); $pdf->Ln(0); $pdf->SetFont('Times', 'I', 12); |