Patent ID: 8823983

Claim:
A non-transitory computer-readable medium having a computer program stored thereon and readable by a computer mounted in a terminal device that is configured to be connected to a printer, the computer program, when executed by the computer, causes the computer to perform operations comprising: a first monitoring process for monitoring whether target data representing a target image enters a state in which the target data is editable by an application program; a first print data generation process for generating first print data corresponding to a first specific image which is at least a portion of the target image to be printed, wherein the first print data is generated before a specific operation to cause the printer to start printing using the first print data is carried out in an operating unit of the terminal device; a first print data transmission process for transmitting the first print data to the printer before the specific operation to cause the printer to start printing using the first print data is carried out; a second monitoring process for monitoring whether a predetermined part of the target data represented by the first specific image has been edited by the application program; a modification information transmission process for transmitting modification information, which represents a change between the target data before being edited and the edited target data, to the printer for the edited target data; and an instruction transmission process for, when the specific operation is carried out, transmitting a printing start instruction to cause the printer to start printing; wherein in the first print data generation process, the computer program causes the computer to store the first print data in a memory of the terminal device, wherein in the first print data transmission process, when the printer is able to store the first print data, the computer program causes the computer to transmit the first print data to the printer, and wherein the operations further comprise: an erasure process for, when the first print data is transmitted to the printer, erasing the first print data from the memory; and a maintenance process for, when the printer is unable to store the first print data, maintaining the first print data in the memory without erasing the first print data from the memory until the first print data is transmitted to the printer; wherein the modification information transmission process transmits the modification information to the printer when the printer is unable to store the first print data.