pdf_output.php File Reference

Go to the source code of this file.

Classes

Functions


Function Documentation

output_table_heading ( Y_Fields_Name_position  ) 

Entete de tableau , pour facture , avec prix, ttc et ht , et total ttc / ht par ligne.

Definition at line 239 of file pdf_output.php.

00239                                                       {
00240   global $pdf;
00241   //First create each Field Name
00242   //Gray color filling each Field Name box
00243   $pdf->SetFillColor(245);
00244   //Bold Font for Field Name
00245   $pdf->SetFont('Arial','B',10);
00246   $pdf->SetY($Y_Fields_Name_position);
00247   $pdf->SetX(6);
00248   $pdf->Cell(9,6,'Qty',1,0,'C',1);
00249   $pdf->SetX(15);
00250   $pdf->Cell(27,6,tep_correct_entitie_put_pdf(TABLE_HEADING_PRODUCTS_MODEL),1,0,'C',1);
00251   $pdf->SetX(40);
00252   $pdf->Cell(78,6,TABLE_HEADING_PRODUCTS,1,0,'C',1);
00253   //$pdf->SetX(105);
00254   //$pdf->Cell(15,6,TABLE_HEADING_TAX,1,0,'C',1);
00255   $pdf->SetX(118);
00256   $pdf->Cell(20,6,TABLE_HEADING_PRICE_EXCLUDING_TAX,1,0,'C',1);
00257   $pdf->SetX(138);
00258   $pdf->Cell(20,6,TABLE_HEADING_PRICE_INCLUDING_TAX,1,0,'C',1);
00259   $pdf->SetX(158);
00260   $pdf->Cell(20,6,TABLE_HEADING_TOTAL_EXCLUDING_TAX,1,0,'C',1);
00261   $pdf->SetX(178);
00262   $pdf->Cell(20,6,TABLE_HEADING_TOTAL_INCLUDING_TAX,1,0,'C',1);
00263   $pdf->Ln();
00264 }

output_table_heading_packingslip ( Y_Fields_Name_position  ) 

Entete de tableau , pour BL , qty, modle + name.

Definition at line 269 of file pdf_output.php.

00269                                                                   {
00270   global $pdf;
00271   //First create each Field Name
00272   //Gray color filling each Field Name box
00273   $pdf->SetFillColor(245);
00274   //Bold Font for Field Name
00275   $pdf->SetFont('Arial','B',10);
00276   $pdf->SetY($Y_Fields_Name_position);
00277   $pdf->SetX(6);
00278   $pdf->Cell(9,6,'Qty',1,0,'C',1);
00279   $pdf->SetX(15);
00280   $pdf->Cell(27,6,tep_correct_entitie_put_pdf(TABLE_HEADING_PRODUCTS_MODEL),1,0,'C',1);
00281   $pdf->SetX(40);
00282   $pdf->Cell(158,6,TABLE_HEADING_PRODUCTS,1,0,'C',1);
00283 }

tep_correct_entitie_put_pdf ( chaine,
utf8 = true 
)

Definition at line 291 of file pdf_output.php.

Referenced by PDF_label::Footer(), PDF::Footer(), PDF::Header(), output_table_heading(), and output_table_heading_packingslip().

00291                                                         {
00292   $array=array('€','€');
00293   $array2=array(chr(128),chr(128));
00294   if($utf8)$chaine=str_replace($array,$array2,utf8_decode($chaine));
00295   else $chaine=str_replace($array,$array2,$chaine);
00296   return strip_tags(unhtmlentities($chaine));
00297 }

tep_wordwrap ( txt,
max 
)

Definition at line 308 of file pdf_output.php.

00308                                  {
00309   if (strlen($txt) > $max ) $newtext = wordwrap($txt, $max, "\n");
00310   return array('txt'=>$newtext,
00311                'nbr'=>substr_count($newtext,"\n")
00312               );
00313 }