Hi PD4ML,
We are trying to generate the PDF with the below markup:
<html>
<body>
<pre>><br
></pre>
</body>
</html>
Java code being used:
Code:
PD4ML pd4ml = new PD4ML();
Map map = new HashMap();
pd4ml.setDynamicParams(map);
InputStreamReader fis = new FileReader(new File("MyPDF.html"));
File file = new File("Output.pdf");
OutputStream fos = new FileOutputStream(file);
System.out.println("Version:" + pd4ml.getVersion());
pd4ml.render(fis, fos);
Jar being used: pd4ml-3112
But we are not able to generate the PDF. We are seeing the below java exceptions
java.lang.StringIndexOutOfBoundsException: String index out of range: 4
at java.lang.String.charAt(String.java:658)
We are getting the exceptions only when we are using pd4ml.setDynamicParams(map) with the above markup
Please not that we are NOT able to generate the PDF itself due to exceptions and we cannot share the PDF for reference.
Can you please fix this issue as soon as possible?
Please let us know if you need more information.
Thanks,
Rekha