Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36144

    Hi,

    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());
    pd4ml.readHTML(is);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    pd4ml.writePDF(baos);
    Files.write(Paths.get(“D:”, “test.pdf”), baos.toByteArray());

    Is there any chance to render such symbols?

    Cheers Felix

    #36145

    for easier debugging
    String test = "<br>& # 9746;</br><br>& # 9744;</br>"; (without the blanks)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.