Hot foil stamping machine with single function