Hi,
I am having difficulty including images in my output pdf.
When my image source has a filetype extension such as someimagefile.png the image link is recognised and it's included in the pdf file.
(All of the image files reside in the same directory with the xml file)
Example:
xml:
css:
The problem is, nearly all of the time the image file links in the xml doesn't have a file extension. Like the one below:
When I convert this file, it does not recognize the link to the image file. Due to lack of file extension at the end.
Is there any way to make prince recognize the value of "src" as a link to the image files?
The only solution that I came up with is to add the file extension using a script. But the drawback is the image files are not consistent (various types of image files).
I am having difficulty including images in my output pdf.
When my image source has a filetype extension such as someimagefile.png the image link is recognised and it's included in the pdf file.
(All of the image files reside in the same directory with the xml file)
Example:
xml:
<img src="photo.png" />
css:
img{
content: attr("src",url);
display:block;
}
The problem is, nearly all of the time the image file links in the xml doesn't have a file extension. Like the one below:
<img src="photo" />
When I convert this file, it does not recognize the link to the image file. Due to lack of file extension at the end.
Is there any way to make prince recognize the value of "src" as a link to the image files?
The only solution that I came up with is to add the file extension using a script. But the drawback is the image files are not consistent (various types of image files).
Edited by efra