Viewing file:      v_repRis112.php (1.36 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<?php
  define('FPDF_FONTPATH',$this->config->item('path_application').'/font/');
  class PDF extends FPDF {     var $cfgClgLogo;     var $cfgClgName;     var $cfgSiteName;
      function Header() {     //$this->Image($this->cfgClgLogo,10,3,18,15);     //AngsanaNew bold 15     $this->SetFont('AngsanaNew','B',15);     //Move to the right     $this->SetY(7);     $this->SetX(30);     //Title     $this->Cell(0,0,$this->cfgClgLogo,0,0,'L');     $this->SetX(-10);     $this->SetFontSize(12);     $this->Cell(0,0,'RIS112',0,0,'R');     $this->Ln(7);     $this->SetX(30);     $this->SetFontSize(15);     $this->Cell(0,0,'222222',0,0,'L');     //Draw line     $this->SetLineWidth(0.4);     $this->Line(10,19,200,19);     }
      function Footer()     {
      } } 
  $pdf=new PDF();
  //Set thai font $pdf->SetThaiFont();
  $pdf->AliasNbPages();
  $pdf->Open(); //Set thai font $pdf->SetThaiFont();
  $pdf->AliasNbPages(); //Disable automatic page break $pdf->SetAutoPageBreak(false);
  //Add first page $pdf->AddPage();
  //set initial y axis position per page $y_axis_initial = 47;
  //Set Row Height $row_height = 6;
  $pdf->cfgClgLogo = $this->config->item('rg_upload_picture').$cfgClgLogo; $pdf->cfgClgName = iconv('UTF-8','TIS-620',$cfgClgName); $pdf->cfgSiteName = iconv('UTF-8','TIS-620',$cfgSiteName);
      $pdf->SetY(20);     $pdf->SetX(10);     $pdf->Cell(10,6,'123456789',1,0,'C'); //    $pdf->Cell(25,6,iconv('UTF-8','TIS-620','asdfghjkl'),1,0,'C');
  $pdf->Output(); ?>
  |