diff --git a/htdocs/compta/facture/impayees.php b/htdocs/compta/facture/impayees.php index e5cd4f79ae1..b61391a957b 100644 --- a/htdocs/compta/facture/impayees.php +++ b/htdocs/compta/facture/impayees.php @@ -72,11 +72,11 @@ if ($_POST["action"] == "builddoc" && $user->rights->facture->lire) if ($conf->global->MAIN_DISABLE_PDF_COMPRESSION) $pdf->SetCompression(false); //$pdf->SetCompression(false); - if (class_exists('TCPDF')) - { - $pdf->setPrintHeader(false); - $pdf->setPrintFooter(false); - } + if (class_exists('TCPDF')) + { + $pdf->setPrintHeader(false); + $pdf->setPrintFooter(false); + } $pdf->SetFont('Helvetica'); //$pdf->Open(); @@ -91,12 +91,12 @@ if ($_POST["action"] == "builddoc" && $user->rights->facture->lire) // Charge un document PDF depuis un fichier. $pagecount = $pdf->setSourceFile($file); for ($i = 1; $i <= $pagecount; $i++) - { - $tplidx = $pdf->importPage($i); - $s = $pdf->getTemplatesize($tplidx); - $pdf->AddPage($s['h'] > $s['w'] ? 'P' : 'L'); - $pdf->useTemplate($tplidx); - } + { + $tplidx = $pdf->importPage($i); + $s = $pdf->getTemplatesize($tplidx); + $pdf->AddPage($s['h'] > $s['w'] ? 'P' : 'L'); + $pdf->useTemplate($tplidx); + } } // Create output dir if not exists @@ -110,7 +110,7 @@ if ($_POST["action"] == "builddoc" && $user->rights->facture->lire) $file=$diroutputpdf.'/'.$filename.'_'.dol_print_date(mktime(),'dayhourlog').'.pdf'; $pdf->Output($file,'F'); if (! empty($conf->global->MAIN_UMASK)) - @chmod($file, octdec($conf->global->MAIN_UMASK)); + @chmod($file, octdec($conf->global->MAIN_UMASK)); } else { @@ -125,8 +125,6 @@ if ($_POST["action"] == "builddoc" && $user->rights->facture->lire) - - /* * View */ @@ -138,23 +136,25 @@ llxHeader('',$title); $html = new Form($db); $formfile = new FormFile($db); -?>