2
0
forked from Wavyzz/dolibarr

Works on migration of FPDF to TCPDF

This commit is contained in:
Laurent Destailleur
2010-10-02 11:12:20 +00:00
parent 2ab7e6c142
commit af79efb0cc
19 changed files with 61 additions and 63 deletions

View File

@@ -111,8 +111,8 @@ class pdf_einstein extends ModelePDFCommandes
global $user,$langs,$conf;
if (! is_object($outputlangs)) $outputlangs=$langs;
// Force output charset to ISO, because, FPDF expect text encoded in ISO
$outputlangs->charset_output='ISO-8859-1';
// For backward compatibility with FPDF, force output charset to ISO, because FPDF expect text to be encoded in ISO
if (!class_exists('TCPDF', false)) $outputlangs->charset_output='ISO-8859-1';
$outputlangs->load("main");
$outputlangs->load("dict");
@@ -242,7 +242,7 @@ class pdf_einstein extends ModelePDFCommandes
for ($i = 0 ; $i < $nblignes ; $i++)
{
$curY = $nexY;
$pdf->SetFont('','', 9); // Dans boucle pour gerer multi-page
// Description of product line