private void RegisterMissingPdfFontsBeforeExport() { CellRange usedCellRange = this.Worksheet.UsedCellRange; for (int row = 0; row <= usedCellRange.ToIndex.RowIndex; row++) { for (int column = 0; column <= usedCellRange.ToIndex.ColumnIndex; column++) { CellSelection cell = this.Worksheet.Cells[new CellIndex(row, column)]; string fontFamilyName = cell.GetFontFamily().Value.GetActualValue(this.Worksheet.Workbook.Theme).ToString(); bool isItalic = cell.GetIsItalic().Value; bool isBold = cell.GetIsBold().Value; this.RegisterFont(fontFamilyName, isItalic, isBold); } } }