I tried to render HTML symbols such as ☒ and ☐ (ballot box) but no luck. Version used is 4.0.15. JVM charset is UTF-8.
here is my sample code:
PD4ML pd4ml = new PD4ML();
String test = “<br>☒</br><br>☐</br>”;
InputStream is = new ByteArrayInputStream(test.getBytes());
ByteArrayOutputStream baos = new ByteArrayOutputStream();
Files.write(Paths.get(“D:”, “test.pdf”), baos.toByteArray());