You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the play-pdf module with play-1.2.3 to generate PDF from template html files. My approach is to send the html source (using document.documentElement.innerHTML) to the server and temporarily storing the html source to a ".html" file and use renderPDF function to generate the PDF. This works fine for normal pages. However, if my pages contain charts (either Google charts or jqplot), then I get the following exception:
Oops: CConvertException
An unexpected error occured caused by exception CConvertException: ERROR: An unhandled exception occured: null
play.exceptions.UnexpectedException: Unexpected Error
at play.modules.pdf.RenderPDFTemplate.apply(RenderPDFTemplate.java:102)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:244)
at Invocation.HTTP Request(Play!)
Caused by: org.allcolor.yahp.converter.IHtmlToPdfTransformer$CConvertException: ERROR: An unhandled exception occured: null
at org.allcolor.yahp.cl.converter.CHtmlToPdfFlyingSaucerTransformer.transform(CHtmlToPdfFlyingSaucerTransformer.java:809)
at play.modules.pdf.RenderPDFTemplate.renderDoc(RenderPDFTemplate.java:142)
at play.modules.pdf.RenderPDFTemplate.renderPDF(RenderPDFTemplate.java:118)
at play.modules.pdf.RenderPDFTemplate.apply(RenderPDFTemplate.java:100)
... 2 more
Caused by: java.lang.NullPointerException
at org.allcolor.yahp.cl.converter.CHtmlToPdfFlyingSaucerTransformer.transform(CHtmlToPdfFlyingSaucerTransformer.java:700)
... 5 more
Is this due to the charts being SVG? If yes, how can I make play-pdf handle SVG content? If not, what could be source of this error? Thanks.
The text was updated successfully, but these errors were encountered:
I am using the play-pdf module with play-1.2.3 to generate PDF from template html files. My approach is to send the html source (using document.documentElement.innerHTML) to the server and temporarily storing the html source to a ".html" file and use renderPDF function to generate the PDF. This works fine for normal pages. However, if my pages contain charts (either Google charts or jqplot), then I get the following exception:
Oops: CConvertException
An unexpected error occured caused by exception CConvertException: ERROR: An unhandled exception occured: null
play.exceptions.UnexpectedException: Unexpected Error
at play.modules.pdf.RenderPDFTemplate.apply(RenderPDFTemplate.java:102)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:244)
at Invocation.HTTP Request(Play!)
Caused by: org.allcolor.yahp.converter.IHtmlToPdfTransformer$CConvertException: ERROR: An unhandled exception occured: null
at org.allcolor.yahp.cl.converter.CHtmlToPdfFlyingSaucerTransformer.transform(CHtmlToPdfFlyingSaucerTransformer.java:809)
at play.modules.pdf.RenderPDFTemplate.renderDoc(RenderPDFTemplate.java:142)
at play.modules.pdf.RenderPDFTemplate.renderPDF(RenderPDFTemplate.java:118)
at play.modules.pdf.RenderPDFTemplate.apply(RenderPDFTemplate.java:100)
... 2 more
Caused by: java.lang.NullPointerException
at org.allcolor.yahp.cl.converter.CHtmlToPdfFlyingSaucerTransformer.transform(CHtmlToPdfFlyingSaucerTransformer.java:700)
... 5 more
Is this due to the charts being SVG? If yes, how can I make play-pdf handle SVG content? If not, what could be source of this error? Thanks.
The text was updated successfully, but these errors were encountered: