private static void SetColumnValues( Table table, PdfPTable pdfTable ) { for ( var row = 0; row < table.RowsCount; row++ ) for ( var col = 0; col < table.ColsCount; col++ ) { var cell = table.GetCell( col, row ); var pdfPCell = new PdfPCell( cell.Phrase ) { HorizontalAlignment = (int) cell.Align }; pdfTable.AddCell( pdfPCell ); } }