I have a small HTML template using which i have to create an image. The HTML consists of text and formatting. The generated image is used by other services. It is similar to product price display in retail shops.
Is there a Java library that can render HTML
to an image file or byte array ? I saw Cobra but it seems old.
EDIT: Setting basic HTML to JLabel and using BufferedImage should work, but i'm not sure if the CSS and Style stuff will get properly handled.
Sample Style
<styles> width: "240", height: "96", background: { type: "solid", color: "#ffffff" } </styles>