Method and apparatus for controlling a printer emulation