You can use the font in iTextSharp using
FontFactory.RegisterDirectories();
Font fontNormal = new Font(FontFactory.GetFont("Arial", 12, Font.NORMAL))
You can set the font in the paragraph using the following:
foreach (var t in htmlarraylist)
{
if(t is Paragraph)
{
((Paragraph)t).Font = fontNormal;
}
document.Add((IElement)t);
}
source
share