summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorSashi202020-06-30 15:54:34 +0530
committerGitHub2020-06-30 15:54:34 +0530
commit1fc7a3fa2e9a66c636892083716d0ad2c3a9e67a (patch)
tree0ef58154eab8ecd2cbd32bd810cafb5c50114249 /pdf
parent1ead58c64e7dd0b482496eb70f415116878b4810 (diff)
parent157d1da21a85512b737737ef152c8e2f88e45fad (diff)
downloaddwsim_flowsheet-1fc7a3fa2e9a66c636892083716d0ad2c3a9e67a.tar.gz
dwsim_flowsheet-1fc7a3fa2e9a66c636892083716d0ad2c3a9e67a.tar.bz2
dwsim_flowsheet-1fc7a3fa2e9a66c636892083716d0ad2c3a9e67a.zip
Merge pull request #40 from Sashi20/drupal_7.x
Modify footer line, PIs signature and add MHRD rubber stamp
Diffstat (limited to 'pdf')
-rwxr-xr-xpdf/cert_new.inc19
-rw-r--r--pdf/images/mhrd.pngbin0 -> 17983 bytes
-rw-r--r--pdf/images/sign.pngbin0 -> 17983 bytes
3 files changed, 12 insertions, 7 deletions
diff --git a/pdf/cert_new.inc b/pdf/cert_new.inc
index 2ae0e79..19b64bb 100755
--- a/pdf/cert_new.inc
+++ b/pdf/cert_new.inc
@@ -121,7 +121,7 @@ function generate_pdf()
$pngAbsoluteFilePath = $tempDir . $fileName;
$urlRelativeFilePath = $path . "/pdf/temp_prcode/" . $fileName;
QRcode::png($codeContents, $pngAbsoluteFilePath);
- $pdf->SetTextColor(0, 0, 0);
+ /*$pdf->SetTextColor(0, 0, 0);
$pdf->Ln(30);
$pdf->SetX(198);
$pdf->SetFont('', '');
@@ -134,11 +134,16 @@ function generate_pdf()
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(240, 8, 'Principal Investigator - FOSSEE', 0, 1, 'R');
$pdf->Ln(-2);
- $pdf->Cell(240, 8, ' Dept. of Chemical Engineering, IIT Bombay.', 0, 1, 'R');
+ $pdf->Cell(240, 8, ' Dept. of Chemical Engineering, IIT Bombay.', 0, 1, 'R');*/
+ $pdf->Ln(30);
+ $pdf->SetX(29);
+ $pdf->SetY(-58);
+ $sign = $path . "/pdf/images/sign.png";
+ $pdf->Image($sign, $pdf->GetX() + 170, $pdf->GetY() - 15, 80, 0);
$pdf->SetX(29);
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY(-58);
- $pdf->Ln(14);
+ $pdf->Ln(8);
$pdf->SetX(10);
$pdf->Cell(0, 0, $UniqueString, 0, 0, 'C');
$pdf->SetX(29);
@@ -146,15 +151,15 @@ function generate_pdf()
$image4 = $path . "/pdf/images/bottom_line.png";
$pdf->SetY(-50);
$pdf->SetX(80);
- //$image3 = $path . "/pdf/images/iitb.png";
+ $image3 = $path . "/pdf/images/mhrd.png";
$image2 = $path . "/pdf/images/fossee.png";
$pdf->Ln(8);
$pdf->Image($image2, $pdf->GetX() +15, $pdf->GetY() + 7, 40, 0);
$pdf->Ln(6);
- $pdf->Image($pngAbsoluteFilePath, $pdf->GetX() + 102, $pdf->GetY() - 5, 30, 0);
- //$pdf->Image($image3, $pdf->GetX() + 200, $pdf->GetY() -3, 15, 0);
- $pdf->Image($image4, $pdf->GetX() +50, $pdf->GetY() + 28, 150, 0);
+ $pdf->Image($pngAbsoluteFilePath, $pdf->GetX() + 102, $pdf->GetY() - 10, 30, 0);
+ $pdf->Image($image3, $pdf->GetX() + 200, $pdf->GetY() -3, 40, 0);
+ $pdf->Image($image4, $pdf->GetX() +50, $pdf->GetY() + 22, 120, 0);
$pdf->SetFont('Arial', 'I', 8);
$pdf->SetTextColor(0, 0, 0);
$filename = str_replace(' ', '-', $data3->contributor_name) . '-DWSIM-Flowsheet-Certificate.pdf';
diff --git a/pdf/images/mhrd.png b/pdf/images/mhrd.png
new file mode 100644
index 0000000..478dc8e
--- /dev/null
+++ b/pdf/images/mhrd.png
Binary files differ
diff --git a/pdf/images/sign.png b/pdf/images/sign.png
new file mode 100644
index 0000000..478dc8e
--- /dev/null
+++ b/pdf/images/sign.png
Binary files differ