Hello,
i'm trying to change the font in PDF and I'm receiving this error message.
Could you help me ?
Obs: The PDF file is attached.
PdfPageBase page = doc.Pages[0];
PdfUsedFont[] fonts = doc.UsedFonts;
PdfFont newfont = new PdfFont(PdfFontFamily.TimesRoman, 11f);
try
{
foreach (PdfUsedFont font in fonts)
{
// Console.WriteLine("{0}, {1}, {2}, {3}", font.Name, font.Size, font.Type, font.Style);
font.Replace(newfont);
}