java-html2image icon indicating copy to clipboard operation
java-html2image copied to clipboard

Load HTML from local or remote Path

Open GoogleCodeExporter opened this issue 10 years ago • 1 comments

What steps will reproduce the problem?
1. 
imageGenerator.loadUrl("\\\ServerName\\LinePlacementProject\\HTML_LineImage.html
");
imageGenerator.saveAsImage("\\\ServerName\\LinePlacementProject\\LineImage.png")
;

2. imageGenerator.loadUrl("D:\\Test 
Envirnoment\\LinePlacementProject\\HTML_LineImage.html");
imageGenerator.saveAsImage("D:\\LinePlacementProject\\LineImage.png");

3.

What is the expected output? What do you see instead?
PNG generated image is expected , following error is thrown

Exception in thread "main" java.lang.RuntimeException: Exception while loading 
D:\Test Envirnoment\LinePlacementProject\HTML_LineImage.html
    at gui.ava.html.image.generator.HtmlImageGenerator.loadUrl(HtmlImageGenerator.java:60)
    at SSIS.ImageConverstion.main(ImageConverstion.java:10)
Caused by: java.net.MalformedURLException: unknown protocol: d
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at javax.swing.JEditorPane.setPage(Unknown Source)
    at gui.ava.html.image.generator.HtmlImageGenerator.loadUrl(HtmlImageGenerator.java:58)


What version of the product are you using? On what operating system?

Eclipse JDK 7 Windows 7

Please provide any additional information below.

none

Original issue reported on code.google.com by [email protected] on 29 Nov 2014 at 2:17

GoogleCodeExporter avatar Jun 10 '15 11:06 GoogleCodeExporter

What version of the product are you using? On what operating system?
html2image-0.9.jar
JDK 7 
Windows 7
Eclipse Luna

Original comment by [email protected] on 29 Nov 2014 at 2:21

GoogleCodeExporter avatar Jun 10 '15 11:06 GoogleCodeExporter