Hi,
I’m inserting HTML into a com.aspose.words.Document
which contains <ul style="list-style-type: square;"><li>item</li></ul>
. The included li elements appear with an unprintable character in the PDF saved with Document.save(OutputStream, SaveFormat.PDF)
. This only applies to ul with style="list-style-type: square;
whereas other styles such as style="list-style-type: circle;
or omitting such style attributes work fine.
I expect this to work on an average Linux like Ubuntu 22.04. Since the CSS style is a cross-platform format the square should be mapped to a character code available on all systems. Or is there some font configuration I’m missing?
I’m providing a standalone reproducer aspose-words-list-style-type-square.zip (62.8 KB) which can be executed with ./mvnw test
. The resulting PDF is saved in /tmp and shows the unprintable character in the last list:
Bildschirmfoto vom 2022-05-20 12-19-10.png (10.4 KB)
Best regards,
Kalle Richter