主权项 |
1. A printing apparatus comprising:
an interface; a first memory; a printing device configured to perform printing based on image data stored in the first memory; a processor; and a second memory storing instructions, the instructions, when executed by the processor, causing the processor to perform:
transmitting a first request to a server via the interface, the first request requesting the server to connect with the printing apparatus;establishing connection between the printing apparatus and the server;transmitting a second request to the server via the interface, the second request requesting the server to transmit image data stored in the server after connection with the server and before reception of a print instruction, the print instruction being an instruction for receiving image data stored in the server and for controlling the printing device to perform printing based on the image data;receiving image data stored in the server via the interface based on the second request;storing the received image data in the first memory;receiving the print instruction via the interface;determining whether the image data stored in the first memory is included in the image data for which the print instruction is received;in response to determination that the image data stored in the first memory is included in the image data for which the print instruction is received, controlling the printing device to perform printing based on the image data stored in the first memory; andin response to determination that the image data stored in the first memory is not included in the image data for which the print instruction is received,
transmitting a third request to the server via the interface, the third request requesting the server to transmit the image data for which the print instruction is received, andcontrolling the printing device to perform printing based on the image data for which the print instruction is received, after receiving the image data from the server. |