Laser or electron beam heating the ink