Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 684 → Rev 685

/trunk/modules/pdf_export/PdfExport.php
158,7 → 158,7
 
private function envoyerPdfAuNavigateur() {
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="'.$this->nom_retenu.'.pdf"');
header('Content-Disposition: attachment; filename='.str_replace(' ','_',$this->nom_retenu).'.pdf');
readfile($this->fichier_pdf);
unlink($this->fichier_html);
unlink($this->fichier_pdf);
174,7 → 174,7
$nom = $this->nom_retenu;
file_put_contents($this->fichier_html, $this->html);
$commande =
" {$this->wkhtml} --replace 'nom' '$nom' --footer-html '{$this->piedepage}' --encoding utf-8 {$this->fichier_html} {$this->fichier_pdf} 2>&1";
" {$this->wkhtml} --replace 'nom' '$nom' --footer-html {$this->piedepage} --encoding utf-8 {$this->fichier_html} {$this->fichier_pdf} 2>&1";
$debug = exec($commande);
//echo $debug;
}