Can anyone help me with my error?
in the first comment i have posted the code i want to convert to PDF, i cannot find the errors that don't allow me to use ur code.
thank you very much!!!
Spipu Le 13/07/2010 à 11:58 can you post here the html ?
does anybody can help me?
Spipu Le 02/08/2010 à 16:22 your html and css code is not really clean... start from the beginning, by creating your HTML from your own hands... not with a tool like dreamweaver or others... and read the examples...
Spipu Le 06/08/2010 à 13:08 why do you put all your table on a div ?
about le borders : it is because border-collapse is enabled.
about le position on the page : try to use the marges on the <page> tag
Thank you very much Spipou! it worked perfectly when i visualize in html but the image properties doesn't work and the image is not saved on the pdf.
i'm doing this:
<table border=0 cellpadding=0 cellspacing=0 width=895 style='border-collapse: separate;table-layout:fixed;width:672pt; background-image:url(\"logo/$logo\")'>
and works in html, not in pdf.
but if i do this:
<table border=0 cellpadding=0 cellspacing=0 width=895 style='border-collapse: separate;table-layout:fixed;width:672pt; background:url(\"logo/$logo\")'>
error:
Fatal error: Uncaught <span style="color: #AA0000; font-weight: bold;">ERROR n°6</span><br>Fichero : /home/s020d938/public_html/intranet/notas/html2pdf/html2pdf.class.php<br>Línea : 2545<br><br>Imposible cargar la imagen <b>"logo/judo.png"</b> thrown in /home/s020d938/public_html/intranet/notas/html2pdf/html2pdf.class.php on line 2545
if i do:
<table border=0 cellpadding=0 cellspacing=0 width=895 style='border-collapse: separate;table-layout:fixed;width:672pt; background:url(\"logo/$logo\"); background-position: center; background-repeat: no-repeat'>
i get the same error.
any idea?
thank you very much once more.
anybody knows why does it happen?
thank you
Spipu Le 12/08/2010 à 19:12 Have you tried with another image or with a simplest html ?
I'd the same problem yesterday. For me ... the stuff was that I was testing a script in localhost but without images. Well, fors solve your problem, I think you can try to call images with absolute path.
Maibe, first, you can try to do this:
background:url(\"logo/img.png\");
and then
background:url(\"logo/$logo\");
In this way you are shure that $logo is correct. Are you shure that $logo has the value you expect?