Integrated machine for spreading and drying tablets