133,8 → 133,12 |
$this->capturerParametresFormulaire(); |
$donnees = $this->obtenirDonnees(); |
$this->construireHtml($donnees); |
$this->transformerHtmlEnPdf(); |
$this->envoyerPdfAuNavigateur(); |
if ($this->transformerHtmlEnPdf()) { |
$this->envoyerPdfAuNavigateur(); |
} |
else { |
die('erreur de generation du fichier PDF'); |
} |
} |
|
|
196,8 → 200,11 |
$nom = $this->getNomRetenu(); |
file_put_contents($this->fichier_html, $this->html); |
$commande = "{$this->wkhtml} --replace 'nom' '$nom' --encoding utf-8 --footer-html {$this->piedepage} {$this->fichier_html} {$this->fichier_pdf}"; |
$debug = exec($commande); |
//echo $debug; |
$ret = -1; |
$debug = array(); |
exec($commande, $debug, $ret); |
//print_r( $debug ); echo $ret; |
return ( $ret == 0 ); |
} |
} |
?> |