Line 172... |
Line 172... |
172 |
$this->fichier_html = $this->chemin_pdf.''.str_replace(' ','_',$this->nom_retenu).'-'.$time.'.html';
|
172 |
$this->fichier_html = $this->chemin_pdf.''.str_replace(' ','_',$this->nom_retenu).'-'.$time.'.html';
|
173 |
$this->fichier_pdf = $this->chemin_pdf.''.str_replace(' ','_',$this->nom_retenu).'-'.$time.'.pdf';
|
173 |
$this->fichier_pdf = $this->chemin_pdf.''.str_replace(' ','_',$this->nom_retenu).'-'.$time.'.pdf';
|
174 |
$nom = $this->nom_retenu;
|
174 |
$nom = $this->nom_retenu;
|
175 |
file_put_contents($this->fichier_html, $this->html);
|
175 |
file_put_contents($this->fichier_html, $this->html);
|
176 |
$commande =
|
176 |
$commande =
|
177 |
" {$this->wkhtml} --replace 'nom' '$nom' --footer-html '{$this->piedepage}' --encoding utf-8 $this->fichier_html $this->fichier_pdf 2>&1";
|
177 |
" {$this->wkhtml} --replace 'nom' '$nom' --footer-html '{$this->piedepage}' --encoding utf-8 {$this->fichier_html} {$this->fichier_pdf} 2>&1";
|
178 |
$debug = exec($commande);
|
178 |
$debug = exec($commande);
|
179 |
//echo $debug;
|
179 |
//echo $debug;
|
180 |
}
|
180 |
}
|