Re,
Merci pour tes reponses Spipu,
Code php saisi :
// récupération du contenu HTML
$domain = '
http://www.cestfacile.org';
$url = $domain.'/convertir-page-web-pdf.htm';
// récupération du contenu HTML
$content = file_get_contents($url);
$content = str_replace("'/", "'".$domain, $content);
$content = str_replace('"/', '"'.$domain, $content);
// récupération du contenu HTML
$content = file_get_contents($url);
// conversion HTML => PDF
require_once(dirname(__FILE__).'/html2pdf.class.php');
(LIGNE 28 )
$html2pdf = new HTML2PDF('P','A4','fr', array(10, 20, 10, 10));
$html2pdf->setTestIsImage(true);
$html2pdf->setDefaultFont('arial');
$html2pdf->WriteHTML($content, isset($_GET['vuehtml']));
$html2pdf->Output('convert.pdf');
Message d'erreur correspondant :
Warning: require_once(C:\wamp\www\html2pdf_v3.26\exemples/html2pdf.class.php) [function.require-once]: failed to
open stream: No such file or directory in C:\wamp\www\html2pdf_v3.26\exemples\exemple00.php on line 28
Fatal error: require_once() [function.require]: Failed opening required 'C:\wamp\www\html2pdf_v3.26\exemples/html2pdf.class.php' (include_path='.;C:\php5\pear') in C:\wamp\www\html2pdf_v3.26\exemples\exemple00.php on line 28
Merci
