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

Free Support Forum - aspose.com

RTF to PDF conversion and underlines

I am trying to convert an RTF to a PDF. I am running into some odd formatting issues where the process is introducing some underlines that do not seem to exist. Please see the attached example RTF and converted PDF. In the PDF none of the lettered bullets should be underlined but the first two are for some reason. Opening the RTF in Word shows no underlines under the lettered bullets. The text beside the bullets should be underlined and is in the RTF and the PDF. What’s going on? Can this be fixed?


Thanks…

Hello

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved. As a workaround please try using the following code:

Document doc = new Document("test.rtf");

// Get collection of Paragraph nodes.

NodeCollection paragraphs = doc.GetChildNodes(NodeType.Paragraph, true);

// Loop throught all Paragraphs.

foreach (Paragraph parag in paragraphs)

{

if (parag.IsListItem)

parag.ListFormat.ListLevel.Font.Underline = Underline.None;

}

doc.SaveToPdf("out.pdf");

Best regards,

The issues you have found earlier (filed as 15348) have been fixed in this update.