mayid Le 05/05/2010 à 17:34 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?
mayid Le 05/05/2010 à 17:37 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?
Spipu Le 06/05/2010 à 08:10Edité par Spipu le 08/05/2010 à 22:27 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
mayid Le 08/05/2010 à 21:05 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?
Spipu Le 08/05/2010 à 22:28 try to specify the path in absolute
mayid Le 11/05/2010 à 03:07 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!