|  |  | 
          
            | ผมลองใส่รูปภาพไฟล์ .png บางภาพก็แสดงเป็น PDF บางภาพก็ error ไม่ทราบว่ามีคำแนะนำแก้ไขตรงไหนบ้างครับ หรือต้องแก้ไขที่ไฟลืภาพครับ 
 <?php
 require('fpdf/fpdf.php');
 
 class PDF extends FPDF
 {
 // Page header
 function Header()
 {
 // GFG logo image
 
 //$this->Image('420540629.png',30, 8, 20);
 
 
 $this->Ln(5);
 }
 }
 
 /* Instanciation of inherited class */
 
 $pdf = new PDF();
 $pdf->AliasNbPages();
 $pdf->AddPage();
 $pdf->Image('420540629.png',10,12,30,0,'','http://www.select2web.com');
 /*output the result*/
 $pdf->AddFont('angsa','','angsa.php');
 $pdf->SetFont('angsa','',16);
 $pdf->Text( 50  , 18 , iconv( 'UTF-8','cp874' , 'ปปปปปป' ) );
 $pdf->Text( 50  , 23 , iconv( 'UTF-8','cp874' , 'อออออออ' ) );
 $pdf->Text( 50  , 28 , iconv( 'UTF-8','cp874' , 'วววววววว' ));
 $pdf->Output();
 $pdf->WriteHTML($html);
 $pdf = new FPDF('P','mm','A4');
 ?>
 
 
 
 Tag : PHP, PDF
 
 
 |  
            |  |  
            | 
              
                |  |  |  |  
                |  | 
                    
                      | Date :
                          2022-09-14 13:11:54 | By :
                          หัดใหม่ | View :
                          597 | Reply :
                          1 |  |  |  
                |  |  |  |  |  
            |  |  
		            |  |