summaryrefslogtreecommitdiff
path: root/pdf/generate_pdf.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/generate_pdf.inc')
-rwxr-xr-xpdf/generate_pdf.inc43
1 files changed, 28 insertions, 15 deletions
diff --git a/pdf/generate_pdf.inc b/pdf/generate_pdf.inc
index 9e30109..2e222d8 100755
--- a/pdf/generate_pdf.inc
+++ b/pdf/generate_pdf.inc
@@ -25,34 +25,37 @@
$pdf->Line(270.0,210.0,270.0,7.0);
$pdf->Line(7.0,210.0,270.0,210.0);
- //$pdf->Image("http://10.118.248.101/scilab_in/sites/all/modules/textbook_companion/pdf/images/garland_logo.png", 10, 9, 0, 15);
+ $pdf->Image("/Sites/scilab_in/sites/default/files/scilab_logo.png", 10, 9, 0, 15);
$path = drupal_get_path('module', 'textbook_companion');
$pdf->Image($path."/pdf/images/fossee.png", 232, 9, 0, 15);
$pdf->SetFont('Arial','B',25);
$pdf->Ln(30);
$pdf->Cell(240,8,'Certificate', 0,1,'C');
-
+ $pdf->Ln(5);
$pdf->SetFont('Arial','B',12);
- $pdf->Cell(240,8,'Textbook Companion Project', '0','1','C');
+ $pdf->Cell(240,8,'Textbook Companion', '0','1','C');
$pdf->Ln(20);
- $pdf->Cell(240,8,'IIT Bombay', '0','1','C');
+ //$pdf->Cell(240,8,'IIT Bombay', '0','1','C');
$pdf->SetFont('Arial','',12);
if(strtolower($data3->branch)!="others")
{
- $pdf->MultiCell(240,8,'This is to certify that Mr. /Ms. '.$data3->full_name.'from the Department Of '.$data3->branch.' '.$data3->university.' Universty has sucessfully completed training under the Textbook Companion Project for a duration equivalent to six weeks.He/She has coded, in Scilab, all the solved examples of the alloted textbook: '.$data2->book, 0);
+ $pdf->MultiCell(240,8,'This is to certify that Mr./Ms. '.$data3->full_name.' from the Department of '.$data3->branch.', '.$data3->university.' has successfully completed Internship under Scilab Textbook Companion for a duration equivalent to six weeks. He/She has coded, in Scilab, all the solved examples of the allotted textbook: '.$data2->book.' by '.$data2->author.'.', 0);
}
else
{
- $pdf->MultiCell(240,8,'This is to certify that Mr. /Ms. '.$data3->full_name.' from '.$data3->university.' Universty has sucessfully completed training under the Textbook Companion Project for a duration equivalent to six weeks.He/She has coded, in Scilab, all the solved examples of the alloted textbook: '.$data2->book, 0);
+ $pdf->MultiCell(240,8,'This is to certify that Mr. /Ms. '.$data3->full_name.' from '.$data3->university.' has successfully completed training under Scilab Textbook Companion for a duration equivalent to six weeks.He/She has coded, in Scilab, all the solved examples of the allotted textbook: '.$data2->book.' by '.$data2->author.'.', 0);
} $pdf->Cell(10,10,'The work done is available at ', '0','0','L');
$pdf->SetX(75);
$pdf->SetFont('','U');
$pdf->SetTextColor(0,0,255);
$pdf->write(10,'http://scilab.in','http://scilab.in');
+ $pdf->SetFont('','');
+ $pdf->SetTextColor(0,0,0);
+ $pdf->write(10,'.','.');
$pdf->Ln(10);
@@ -62,25 +65,35 @@
$pdf->SetX(170);
$pdf->SetFont('','U');
+ $pdf->SetTextColor(0,0,255);
+ $pdf->write(10,'http://fossee.in','http://fossee.in');
+
+ $pdf->SetX(198);
+ $pdf->SetFont('','');
$pdf->SetTextColor(0,0,0);
- $pdf->write(10,'http://fossee.in)','http://fossee.in');
+ $pdf->write(10,').');
- $pdf->SetY(165);
+ $pdf->SetY(-50);
$pdf->SetX(209);
+ $pdf->SetTextColor(0,0,0);
$pdf->SetFont('','B');
- $pdf->Cell(0,10,'Prof. Madhu Belur', 0,1,'L');
-
- $pdf->SetX(201);
- $pdf->Cell(0,10,'Electrical Engineering Dept.', 0,1,'L');
+ $pdf->Image($path."/pdf/images/sign.png", 212, 151, 0, 15);
+ //$pdf->SetX(206);
+ $pdf->Cell(0,7,'Prof. Madhu Belur', 0,1,'L');
+ $pdf->SetX(195);
+ $pdf->Cell(0,7,'Principal Investigator - FOSSEE',0,1,'L');
+ $pdf->SetX(195);
+ $pdf->Cell(0,7,' Dept. of Electrical Engineering', 0,1,'L');
- $pdf->SetX(200);
- $pdf->Cell(0,10,'FOSSEE Project, IIT Bombay', 0,1,'L');
+ $pdf->SetX(216);
+ $pdf->Cell(0,7,'IIT Bombay', 0,1,'L');
- $cur_date=date('Y-m-d');
+ $cur_date=date('jS F, Y');
$pdf->SetY(180);
$pdf->SetFont('','');
$pdf->Cell(200,0,' Date: '.$cur_date.'',0,1,'L');
+ //$pdf->Cell(200,0,' Date: 28th August, 2013',0,1,'L');
$pdf->Cell(200,15,'Email: textbook@scilab.in', 0,1,'L');
$pdf->Output();
}