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

Free Support Forum - aspose.com

Link imported from HTML without underline


I tried to import an HTML text into a paragraph with the property IsHtmlTagSupported at true. But all the links are underline automatically and I don't want that. I t(ry with the text-decoration property of CSS but it doesn't work. Any idea?

Here's my code :
class Program
private const string FileName = @"TextDecorationSample.pdf";
private const string LicenseFileName = @"Aspose.Total.lic";

/* Here is a simple link
* we can set the following CSS attributs :
* - font-weight
* - font-size
* - color
* => But the text-decoration doesn't work
const string Link = "Google";

/* Our needs are :
* - to dispay a link WITHOUT underlining it.
* - to include additional HTML tag with basic CSS in the text show by the previous link
const string AdvancedLink =

static void Main()
(new Aspose.Pdf.License()).SetLicense(LicenseFileName);

var pdf = new Pdf{OpenType = OpenType.None};
var section = new Section();
var text = new Text(Link) { IsHtmlTagSupported = true };

var advancedText = new Text(AdvancedLink) { IsHtmlTagSupported = true };



(new System.Diagnostics.Process {StartInfo = {FileName = FileName}}).Start();

Thanks in advance!
I'm using Aspose PDF and I cannot change version for the moment.

Hi Anouk,

I have tested the scenario and able to notice the same problem. For the sake of correction, I have logged this problem as PDFNEWNET-32233 in our issue tracking system. We will further look into the details of this problem and will keep you updated on the status of correction.

We apologize for your inconvenience.

Thanks & Regards,

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

This message was posted using Notification2Forum from Downloads module by aspose.notifier.