var htmlarraylist = HTMLWorker.ParseToList(new StringReader(htmlText), styles);
document.Open();
BaseFont Vn_Helvetica = BaseFont.CreateFont(@"C:\Windows\Fonts\arial.ttf",
"Identity-H", BaseFont.EMBEDDED);
Font fontNormal = new Font(Vn_Helvetica, 12, Font.NORMAL);
foreach (var t in htmlarraylist)
{
if (t is PdfPTable)
{
//how set fontNormal all text from Pdfptable ?
}
document.Add((IElement)t);
}
document.Close();
有人可以幫我請從Pdfptable所有文本與iTextSharp的設置字體
可能重複]((PdfPTable)t).DefaultCell.Phrase = new Phrase(){Font = fontNormal}(http://stackoverflow.com/questions/11562589/itextsharp-set-font-for-ielement) – 2012-07-20 13:42:39