Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 679 | Rev 681 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 679 Rev 680
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
	}