HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › Support of java: protocol for other resources than images › Re: Re: Support of java: protocol for other resources than images
November 7, 2016 at 15:02
#29950
Hi,
my sample code :
String s = ““;
PD4ML pd4ml = new PD4ML();
pd4ml.render(new StringReader(s), new NullOutputStream());
this throws an exception:
java.net.MalformedURLException: unknown protocol: java
at java.net.URL.
at java.net.URL.
at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)
at org.zefer.pd4ml.PD4ML.super(Unknown Source)
at org.zefer.pd4ml.PD4ML.render(Unknown Source)
at Test.main(Test.java:13)