HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Images in different contexts not rendered › Re: Re: Images in different contexts not rendered
August 11, 2012 at 11:47
#29086
PD4ML offers 2 API methods, which help to resolve web paths and load the resources: pd4ml.useServletContext() and pd4ml.useHttpRequest().
(PD4ML taglib implicitly triggers pd4ml.useServletContext())
If none of the methods help, the only solution is to extend the URIs from /Common/Images/icon_delete.gif to http://localhost/Common/Images/icon_delete.gif.
In JSP context there is a special PD4ML custom tag intended for automatic extending of local to full URLs:
http://pd4ml.com/taglib/pd4ml/fix_base_path.html