Adjust pdf generator to use the RahuNAS logo
authorNeutron Soutmun <neo.neutron@gmail.com>
Wed, 13 May 2009 17:54:29 +0000 (00:54 +0700)
committerNeutron Soutmun <neo.neutron@gmail.com>
Wed, 13 May 2009 17:54:29 +0000 (00:54 +0700)
  * Adjust pdf generator to use the RahuNAS logo
  * Upload the images/rahunas-logo-card.png to be and example logo

rahunas/images/rahunas-logo-card.png [new file with mode: 0644]
rahunas/rahunas_pdf.php

diff --git a/rahunas/images/rahunas-logo-card.png b/rahunas/images/rahunas-logo-card.png
new file mode 100644 (file)
index 0000000..5064a6b
Binary files /dev/null and b/rahunas/images/rahunas-logo-card.png differ
index 84eee46..fb42990 100644 (file)
@@ -53,7 +53,7 @@ class voucher extends FPDF
   }
   function Header() {
     $this->SetFont('Arial', '', 14);
-    $this->Text($this->margin_left, 15, "Pullman Khon Kaen Raja Orchid");
+    $this->Text($this->margin_left, 15, "RahuNAS - Rahu Network Access Server");
   }
   function Footer() {
     //$this->Text(-10, -10, 'Page ' . $this->PageNo());
@@ -119,12 +119,12 @@ class voucher extends FPDF
                   $this->vouchersize["H"],"",1,0);
        
       // Pullman specific right black line 
-      $this->Rect($xbase + $this->vouchersize["W"] - 1.8,
-                  $ybase + ($this->vouchersize["H"] - 
-                   (0.56 * $this->vouchersize["H"])) / 2,
-                  1.8, ($this->vouchersize["H"] * 0.56), 'F');
+      //$this->Rect($xbase + $this->vouchersize["W"] - 1.8,
+      //            $ybase + ($this->vouchersize["H"] - 
+      //             (0.56 * $this->vouchersize["H"])) / 2,
+      //            1.8, ($this->vouchersize["H"] * 0.56), 'F');
 
-      $this->Image("/usr/share/drupal6/sites/default/files/pullman.png", $xbase+2, $ybase+2, 30);
+      $this->Image(file_directory_path() . "/rahunas-logo-card.png", $xbase+7, $ybase+2, 15);
       $this->SetFont('Arial', 'B', 12);
       $this->Text($xbase+38, $ybase+8, "Internet Access Card");
       $this->SetFont('Arial', '', 10);