I believe a simple emulator using pyserial in python would work. Simply match the baudrate, flow control settings to match the physical printer parameters, and you can listen on a specific port for print data.