1

Bonjour,

I have a problem with embedded images in the pdf-file. The files are in different directories, pe /2012/05/xxx.html or /2012/05/03/xxx.html. My image directory is /images. So it is quite hard to give relative paths for the images, especially since the pdf Creater is in a completely different directory. But if I try to give an absolute path (http://yyy.com/images/image.png) the converter still says it cannot load those images.
What am I doing wrong, and how can I get those images to show correctly?

Another question is concerning tags. Those files contain custom-tags (they are created from xml-files, and they must also be convertable back to xml). If I try to make a pdf, he complains about the unknown tags, and won't produce a pdf file. Is there a way to make html2pdf ignore custom tags, or do I have to temporary strip those tags from the html code?

Merci beaucoup
Puri

2

just use a absolue path, not a absolute url wink

for the tags, just strip them
Ancien pseudo : lolo

3

Thanks, I stripped the tags.

The absolute path still is a problem, the HTML files still need to be valid html files. The server of course has a httpdocs directory, so the images in the http rootpath (http://xxx.com/images) actually are stored in "/srv/httpdocs/images". If I use the latter path, the pdf creation will work, but the html files are broken, and vice versa.

But since I have to manipulate the source code anyhow to strip the tags, I can also (string)replace the path to the images.

Thank you!