We are currently using Prince 7 in our application and when we call the java wrapper convert function on an html file which contains a couple of SVG images, the process fails with the following stacktrace:
java.lang.OutOfMemoryError: Java heap space
java.util.Arrays.copyOf(Arrays.java:2271)
java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113)
java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140)
com.princexml.Util.copyInputToOutput(Util.java:52)
com.princexml.Prince.convert(Prince.java:326)
com.ags.publications.agsReportSelectWindows._wReportSelectWriterInPDF(agsReportSelectWindows.java:1804)
com.ags.publications.agsReportSelectWindows.wReportSelectWriterWindow(agsReportSelectWindows.java:93)
org.apache.jsp.reports.w_005freport_005fwriter_jsp._jspService(w_005freport_005fwriter_jsp.java:257)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
The html file (I'll email it to you) is only 593k. If I convert it via the regular Prince application, it does successfully convert into a 700MB 3 page pdf...
java.lang.OutOfMemoryError: Java heap space
java.util.Arrays.copyOf(Arrays.java:2271)
java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113)
java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140)
com.princexml.Util.copyInputToOutput(Util.java:52)
com.princexml.Prince.convert(Prince.java:326)
com.ags.publications.agsReportSelectWindows._wReportSelectWriterInPDF(agsReportSelectWindows.java:1804)
com.ags.publications.agsReportSelectWindows.wReportSelectWriterWindow(agsReportSelectWindows.java:93)
org.apache.jsp.reports.w_005freport_005fwriter_jsp._jspService(w_005freport_005fwriter_jsp.java:257)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
The html file (I'll email it to you) is only 593k. If I convert it via the regular Prince application, it does successfully convert into a 700MB 3 page pdf...