A printer for printing an interface of human-readable visible information and a machine-readable position-coding pattern onto a surface. The printer comprises: an input for receiving document data; a memory buffer storing dot data for the visible information and dot data for the position-coding pattern; a printhead for printing the interface; visible ink channels dedicated for printing the visible information; and an infrared ink channel exclusively dedicated for printing the position-coding pattern. The printhead is configured to print the interface onto the surface by printing the visible information and the position-coding pattern simultaneously.