Hello,
Thanks for your inquiry.
Kindly note that Spire.PDF for .NET offers the PdfTable and the PdfGrid class to work with the tables in a PDF document. The PdfTable class is used to quickly create simple, regular tables without too much formatting, while the PdfGrid class is used to create more complex tables. For your needs, we recommend that you refer to
this tutorial to use PdfGrid to create a table, where you can set the font for each cell individually. The code snippet for setting the font is as follows:
- Code: Select all
row1.Cells[0].Style.Font = new PdfTrueTypeFont(new Font("Calibri", 13f, FontStyle.Regular), true);
If you have further questions, please feel free to write to us.
Sincerely,
William
E-iceblue support team