43 lines
1.2 KiB
PHP
Executable File
43 lines
1.2 KiB
PHP
Executable File
<?php
|
|
|
|
// Un peu d'espace avant le pied
|
|
$pdf->Ln(5);
|
|
|
|
$pdf->SetFont('Arial','BI', $tp);
|
|
|
|
if (est_anglophone())
|
|
{
|
|
$pdf->Cell(0,$ht,convertirc("Done at " . $_SESSION['villeSociete'].", on ".dateLang($entetevenant['dateSysteme'])),0,1,'C',false);
|
|
}
|
|
else
|
|
{
|
|
$pdf->Cell(0,$ht,convertirc("Fait à " . $_SESSION['villeSociete'].", le ".dateLang($entetevenant['dateSysteme'])),0,1,'C',false);
|
|
}
|
|
|
|
$pdf->Ln(10);
|
|
|
|
$pdf->SetFont('Arial','BU', $tp);
|
|
|
|
$pdf->Cell(0,$ht,convertirc(_("Le Souscripteur")),0,0,'L',false);
|
|
|
|
$pdf->Cell(0,$ht,convertirc(_("Pour l'assureur")),0,0,'R',false);
|
|
|
|
$nomEtatAvenant = $_SESSION['nomEtatAvenant'];
|
|
|
|
// création du fichier
|
|
$uniqid = uniqid();
|
|
$to_upload="Temp/TMP_$nomEtatAvenant"."_"."$uniqid.pdf";
|
|
$fichierTemp="Temp/$uniqid.pdf";
|
|
|
|
$pdf->Output($fichierTemp,"F");
|
|
|
|
// $fichier = pdf_to_image($fichierTemp, $to_upload, $uniqid, "0"); // => Pour cnvertir en image => eviter la cibversion en Word
|
|
$fichier = $fichierTemp;
|
|
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div ';
|
|
|
|
echo $t_html;
|
|
?>
|