HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Local Image Rendered on Mac, but Not on Windows › Re: Re: Local Image Rendered on Mac, but Not on Windows
August 6, 2013 at 12:38
#29376
tag expects not a local path, but an URL as a src attribute value.
The following reformatting should help to workaround:
[language=java:2pljl47z]String portraitPath = System.getProperty(“user.home”) + File.separator + “Desktop” + File.separator + “Test.jpg”;
portraitPath = new File(portraitPath).toURI().toString();[/language:2pljl47z]