Fix: Merge of PDF works with TCPDF.

This commit is contained in:
Laurent Destailleur 2010-11-16 11:59:12 +00:00
parent b4553a64a7
commit 86d7214a43

View File

@ -72,14 +72,13 @@ if ($_POST["action"] == "builddoc" && $user->rights->facture->lire)
// Create empty PDF
$pdf=new FPDI('P','mm','A4');
if ($conf->global->MAIN_DISABLE_PDF_COMPRESSION) $pdf->SetCompression(false);
//$pdf->SetCompression(false);
if (class_exists('TCPDF'))
{
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
}
$pdf->SetFont(pdf_getPDFFont($outputlangs));
//$pdf->SetFont(pdf_getPDFFont($outputlangs));
//$pdf->Open();
//$pdf->AddPage();