2Fermer4
toktokLe 25/05/2010 à 13:07
Thanks for the fast answer! You're Awesome!

However, I still get the same error.
Since English is not my native language, I'll do this step by step:

I did set up the CKEDITOR, to just submit what's inside <body></body>. This is what I get:
<div class="feier1"> 
	<table style="width: 271px; height: 142px;"> 
		<tbody> 
			<tr> <td class="upperleft"> </td><td class="upperhorizon"> </td><td class="upperright"> </td></tr> 
			<tr> 
				<td class="leftvertical"> </td> 
				<td class="eingabefeld"><img src="userdata/elefants.png" style="height: 106px; width: 162px; float: left;" />Love message!</td> 
				<td class="rightvertical"> </td> 
			</tr> 
			<tr> <td class="lowerleft"> </td><td class="lowerhorizon"> </td><td class="lowerright"> </td> </tr> 
		</tbody> 
	</table> 
</div> 


With this, I tried...
echo "Debug:<style>". file_get_contents("contentOA.css"). "</style>" . $htmlbody;
...
$html2pdf->WriteHTML("<style>". file_get_contents("contentOA.css"). "</style>" . $htmlbody);
...
...and while the HTML-output looks ok, the error remains the same.

Fatal error: Uncaught <span style="color: #AA0000; font-weight: bold;">ERROR n&#65533;6</span><br>File : G:\xampp\htdocs\project\html2pdf\html2pdf.class.php<br>Line : 2545<br>
<br>Impossible to load the image <b>"template/feier1/lo.png"</b> thrown in G:\xampp\htdocs\project\html2pdf\html2pdf.class.php on line 2545

---
Since I got a little confused about your comment about the css ("for css, the pb is relative / absolute path from the main php file."), I'll try to clarify as well:

My program is located in the file
/xampp/htdocs/project/confirm.php

the first error happens with:
/xampp/htdocs/project/template/feier1/lo.png

I tried both:
Absolute:
.feier1 table .upperleft {width:10px; height:10px; background-image:url("/project/template/feier1/lo.png");}
Relative:
.feier1 table .upperleft {width:10px; height:10px; background-image:url("template/feier1/lo.png");}
The error remains the same.