PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Not able to generate PDF itself with some markup
   PostPosted: 09 Dec 2019, 08:45 
Hi PD4ML,

We are trying to generate the PDF with the below markup:
<html>
<body>
<pre>&gt;&lt;br
&gt;</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


Attachments:
Screenshot 2019-12-09 at 12.15.21 PM.png
Screenshot 2019-12-09 at 12.15.21 PM.png [ 40.74 KiB | Viewed 2427 times ]
JavaCode.txt [640 Bytes]
Downloaded 722 times
  Subject: Re: Not able to generate PDF itself with some markup
from Delhi   PostPosted: 27 Jan 2020, 09:07 
Hi!
Excellent information!!





Thank you!



[Reply]     [ 2 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share