40,6 → 40,7 |
private $piedepage; |
private $fichier_pdf; |
private $blocs = array(); |
private $nom_retenu; |
|
private $Desc; |
private $Ecolo; |
67,6 → 68,7 |
$this->Biblio = new Bibliographie($this->conteneur); |
$this->Reparti = new Repartition($this->conteneur); |
$this->piedepage = Config::get('chemin_modules').'pdf_export/squelettes/footer.html'; |
$this->nom_retenu = $this->conteneur->getNomCourant()->getNomRetenu()->get('nom_sci_html'); |
} |
|
|
134,7 → 136,7 |
|
private function obtenirDonnees() { |
$donnees = array(); |
$donnees['donnees_pdf'] = array('nom' => $this->parametres['nom'], |
$donnees['donnees_pdf'] = array('nom' => $this->nom_retenu, |
'chemin_css' => Config::get('url_css_pdf')); |
$donnees['description'] = $this->Desc->obtenirDonnees(); |
$donnees['ecologie'] = $this->Ecolo->obtenirDonnees(); |
169,7 → 171,7 |
$time = $_SERVER['REQUEST_TIME'] ; |
$this->fichier_html = $this->chemin_pdf.''.str_replace(' ','_',$this->parametres['nom']).'-'.$time.'.html'; |
$this->fichier_pdf = $this->chemin_pdf.''.str_replace(' ','_',$this->parametres['nom']).'-'.$time.'.pdf'; |
$nom = $this->parametres['nom']; |
$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"; |