Patent ID: 8339629

Claim:
A data processing device comprising: a request reception unit configured to receive a request for connection from an external device; a receiving unit configured to receive print data from the external device, in a case where a connection with the external device has been established; a first notification unit configured to, in response to the request for connection, notify the external device of a first data size which is set to be smaller than a data size capable of being received by said receiving unit; a judgment unit configured to judge whether said data processing device can perform printing; a refusal unit configured to, in a case where said receiving unit receives first data of the first data size being a part of the print data and said judgment unit judges that said data processing device cannot perform printing, transmit a request for disconnecting the established connection before transmission of the print data by the external device is completed; and a second notification unit configured to, in a case where said receiving unit receives the first data of the first data size being a part of the print data and said judgment unit judges that said data processing device can perform printing, notify the external device of a second data size which is larger than the first data size and which is capable of receiving second data of the print data which follows the first data.