HtmlExporter - Generating relative paths in <img src ..>
Posted: Fri Jun 19, 2009 10:16 pm
Hi,
I am using the org.docx4j.convert.out.html.HtmlExporter sample to export a document to html. It works well, but I noticed the output uses the file protocol for the image source. Does anyone know if there is a way to generate a relative path instead?
Current output
Preferred output
-Leigh
I am using the org.docx4j.convert.out.html.HtmlExporter sample to export a document to html. It works well, but I noticed the output uses the file protocol for the image source. Does anyone know if there is a way to generate a relative path instead?
Current output
- Code: Select all
<img src="file:///C:/somedirectory/myfilename.html_files/image1.png" ....>
Preferred output
- Code: Select all
<img src="myfilename.html_files/image1.png" ....>
-Leigh