1

I had an error with images in CSS files. First i thought it was because they were PNG, but i converted them to jpg and it's the same. Error Nr 6.

If i delete the problematic background images from the CSS file, then i get another error: TCPDF ERROR: Could not include font definition file: "lucida grande" (even keeping some other images that don't seem to give any error. Or maybe the first error just cuts the reading flow so the resto of the images are not being perceived till i solve the Font-family issue?)

Any help?

2

Oh! About the images: i think the problem is related to relative paths:

div#division{height:8px; width: 100%; border-bottom:2px solid #39f; background: url(../images/sombra_blanca_b.jpg) repeat-x top}

And about the font-family: neither Lucida Grande and Lucida Sans Unicode are supported?

3

look at the font folder on tcpdf, you will see all the supported fonts. if you want to use others fonts, you have to build them

about the background image, it is a pb of relative path
Ancien pseudo : lolo

4

Thanks! The font issue. It's checked. I 'll look for a way to install a new one.

About images with relative paths in a external CSS path... i don't really know how to access them with php! I can modify the main html file, but not the linked one with PHP, guess. Is there any hint?

5

try to specify the path in absolute
Ancien pseudo : lolo

6

I solved with a conditional.

if (!...) echo <link style.css>

<style>
...
If (...)
[buffer]
include "styles/style.css"
[buffer]
str_replace ("../", "images/", buffer);
...
<style>
...

But i'm trying to manage a huge html resource, and it has some images on it, so some pages do convert, but some other not. So, end of the ride for me. I'll derive this work to one person making it manually.

Thanks a lot!