I have a GWT application that generates an HTML string. I want to convert this string to an image, for example
<html> <head> </head> <body> <several HTML elements including <img too> </body> </html>
I tried using Html2Image , which works when I test it locally in normal Java code (with main class)
But when I deploy to Google App Engine (GAE), I get:
java.lang.NoClassDefFoundError: java.awt.geom.Dimension2D is a restricted class. Please see the Google App Engine developer guide for more details. at com.google.apphosting.runtime.security.shared.stub.java.awt.geom.Dimension2D.<clinit>(Dimension2D.java) at gui.ava.html.image.generator.HtmlImageGenerator.<clinit>(HtmlImageGenerator.java:26) at co.za.cre8.web.lottoShop.server.NotificationServiceImpl.geneateImage(NotificationServiceImpl.java:237) at co.za.cre8.web.lottoShop.server.NotificationServiceImpl.sendMessage(NotificationServiceImpl.java:181)
Itβs pretty clear what the problem is, is there an alternative library?
Thanks in advance. PB
source share