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 

We are trying to generate the PDF with the below markup:

Java code being used:
PD4ML pd4ml = new PD4ML();
Map map = new HashMap();
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.


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 
Excellent information!!

Thank you!

[Reply]     [ 2 posts ] 

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