summaryrefslogtreecommitdiff
path: root/pdf/cert_new.inc
diff options
context:
space:
mode:
authorSashi202019-09-25 12:35:31 +0530
committerSashi202019-09-25 12:35:31 +0530
commitd4d9b75c2b78362eb05a6fbd288acc855ec3ec0b (patch)
tree6837361738e4495a3bae10a670b0e6cee23c728e /pdf/cert_new.inc
parent6aab8b83745440e23c92b13aa0e3d02e88952d6d (diff)
downloadom_pssp-d4d9b75c2b78362eb05a6fbd288acc855ec3ec0b.tar.gz
om_pssp-d4d9b75c2b78362eb05a6fbd288acc855ec3ec0b.tar.bz2
om_pssp-d4d9b75c2b78362eb05a6fbd288acc855ec3ec0b.zip
Modify font from cmr to times
Diffstat (limited to 'pdf/cert_new.inc')
-rwxr-xr-xpdf/cert_new.inc23
1 files changed, 11 insertions, 12 deletions
diff --git a/pdf/cert_new.inc b/pdf/cert_new.inc
index a58c8c9..9981950 100755
--- a/pdf/cert_new.inc
+++ b/pdf/cert_new.inc
@@ -41,40 +41,39 @@ function generate_pdf()
echo "Error!";
} //!$pdf
$pdf->AddPage();
- $pdf->AddFont('Cmr10','','cmr10.php');
$image_bg = $mpath . "/pdf/images/bg_cert.png";
$pdf->Image($image_bg, 0, 0, $pdf->w, $pdf->h);
$pdf->SetMargins(18, 1, 18);
$path = drupal_get_path('module', 'om_pssp');
- $pdf->Ln(45);
- $pdf->SetFont('Cmr10', '', 14);
+ $pdf->Ln(50);
+ $pdf->SetFont('Times', '', 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(240, 8, 'This is to certify that', '0', '1', 'C');
$pdf->Ln(0);
- $pdf->SetFont('Cmr10', '', 16);
+ $pdf->SetFont('Times', 'I', 16);
$pdf->SetTextColor(37, 22, 247);
$contributor_name = WordWrap($data3->contributor_name,70);
$pdf->MultiCell(240, 8, $data3->name_title . '. ' . $contributor_name, '0', 'C');
$pdf->Ln(0);
- $pdf->SetFont('Cmr10', '', 14);
+ $pdf->SetFont('Times', '', 14);
$title = WordWrap($data3->project_title,160);
$university = WordWrap('from ' . $data3->university . ' has successfully contributed under the ', 160);
$pdf->SetTextColor(0, 0, 0);
- $pdf->MultiCell(240, 8, $university . 'OPENMODELICA POWER SYSTEMS SIMULATION PROJECT.', '0','C');
+ $pdf->MultiCell(240, 8, $university . 'OpenModelica Power Systems Simulation Project.', '0','C');
$pdf->Ln(0);
$pdf->Cell(240, 8, 'He/She has created the following simulation', '0', '1', 'C');
$pdf->SetTextColor(37, 22, 247);
- $pdf->SetFont('Cmr10','',16);
+ $pdf->SetFont('Times','I',16);
$pdf->MultiCell(240, 8, $title, '0', 'C');
$pdf->SetTextColor(0, 0, 0);
- $pdf->SetFont('Cmr10','',14);
+ $pdf->SetFont('Times','',14);
$pdf->Cell(240, 8, 'using OpenModelica. The code is available at ', '0', '', 'C');
$pdf->SetTextColor(0, 0, 0);
$pdf->Ln(8);
- $pdf->SetX(90);
- $pdf->SetFont('Cmr10', '', 'U');
+ $pdf->SetX(94);
+ $pdf->SetFont('Times', 'I', 'U');
$pdf->SetTextColor(37, 22, 247);
- $pdf->write(5, 'https://om.fossee.in/powersystems/pssp', 'https://om.fossee.in/powersystems/pssp');
+ $pdf->write(8, 'https://om.fossee.in/powersystems/pssp', 'https://om.fossee.in/powersystems/pssp');
$pdf->Ln(0);
$proposal_get_id = 0;
$UniqueString = "";
@@ -114,7 +113,7 @@ function generate_pdf()
$pdf->SetX(300);
$pdf->Ln(30);
$pdf->Image($pngAbsoluteFilePath, $pdf->GetX()+70 , $pdf->GetY() + 55, 28,28, 0);
- $pdf->SetFont('Cmr10', '', 14);
+ $pdf->SetFont('Times', '', 14);
$pdf->Ln(48);
$pdf->SetX(95);
$pdf->SetTextColor(0, 0, 0);