We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Symbol font in Word To Pdf

Is there any way to make bullets, trademark characters, etc. (created with the Symbol font) output as unicode equivalents? It looks funny when the result pdf is indexed.

Hi

Thanks for your inquiry. Please see the code below for an example. You need map the hex value of the Symbol font to the equivalent Unicode symbol (or whichever font you choose) for each type of bullet point in your document for this to fully work though.

Document doc = new Document("C:\\Temp\\in.doc");

foreach (Paragraph para in doc.GetChildNodes(NodeType.Paragraph, true))

{

if (para.IsListItem)

{

ListLevel level = para.ListFormat.ListLevel;

if (level.NumberFormat.Length > 0)

{

string formatAsHex = string.Format("{0:X}", Convert.ToInt32(level.NumberFormat[0]));

if (formatAsHex == "F0A7")

{

para.ListFormat.ListLevel.Font.Name = "Unicode";

para.ListFormat.ListLevel.NumberFormat = "\x25CF";

}

}

}

}

doc.Save("C:\\Temp\\out.doc");

Please see the attached documents.

Best regards,