Free Support Forum - aspose.com

How to change the enumeration symbol like image or icon

Dear all:

When I transfer the word file to HTML format,how could I change the enumeration symbol from list text data?

Please reference the attachment.
In the attachment, the second line of text has following html source code:


         <span
style=“font-family:Arial; font-size:10pt; font-weight:bold”>Digital
Cameras



I want to change the circle symbol to other like image or icon.

Thanks a lot.

Vince

Hi Vince,

Thanks for your inquiry. Unfortunately, Aspose.Words does not support the requested feature at the moment. However, we had already logged this feature request as WORDSNET-2556 in our issue tracking system. You will be notified via this forum thread once this feature is available. We apologize for your inconvenience.

However, as a workaround, you can define list style in in the Word document with image bullets and then apply this style using Aspose.Words. For example, see the following code:

Document doc = new Document(MyDir + "in.docx");

List list = doc.getLists().add(doc.getStyles().get("myListStyle"));

for(Paragraph para : (Iterable<Paragraph>) doc.getChildNodes(NodeType.PARAGRAPH, true))

{

if(para.getListFormat().isListItem())

{

para.getListFormat().setList(list);

}

}

doc.save(MyDir + "AsposeOut.html");