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)
{
var countColumn= ((PdfPTable)t).NumberOfColumns;//is 7
var countRows = ((PdfPTable)t).Rows;//is 10
//我想为所有文本设置 normalFont 但 defaultCell.Phrase 始终为空
((PdfPTable)t).DefaultCell.Phrase = new Phrase() { Font = fontNormal };
//如何在pdfptable中查找文本来设置字体?
}
document.Add(t);