221,7 → 221,7 |
private function transformerHtmlEnPdf() { |
$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}"; |
$commande = "xvfb-run {$this->wkhtml} --replace 'nom' '$nom' --encoding utf-8 --footer-html {$this->piedepage} {$this->fichier_html} {$this->fichier_pdf}"; |
$ret = -1; |
$debug = array(); |
exec($commande, $debug, $ret); |
230,4 → 230,4 |
return $ok; |
} |
} |
?> |
?> |