Hi Tilal, I was trying To add solid red line in pdf using the below ToCTitle using below line TocPage.Paragraphs.Add( new HtmlFragment(" ")); But the generated PDF contains solid black line.....Can your team test this …...Issue related to HTMLFragment - HTML to PDF using DOM Aspose.PDF...tested your scenario with shared HTML string and managed to observe...