Patent ID: 8144343

Claim:
A printing apparatus which communicates with an image supply device using Picture Transfer Protocol (PTP) and receives image data from the image supply device and prints the image data, the printing apparatus having a function which checks attribute information of a file object managed in the image supply device when initiating a communication with the image supply device, and confirms that the printing apparatus and the image supply device support a direct printing function by transmitting a script in which HDISCVRY.DPS is described to the image supply device, in response to receipt of a script in which DDISCVRY.DPS is described, the printing apparatus comprising: a reception unit configured to receive a first script in which DDISCVRY.DPS is described from the image supply device; a transmission unit configured to transmit a second script in which HDISCVRY.DPS and information indicating that the printing apparatus supports an XHTML printing are described to the image supply device, in a case that information indicating that the image supply device supports the XHTML printing and information of a relationship between a file name of an image described in XHTML information and identification information for identifying the image under the PTP are described in the received first script; a control unit configured to place the printing apparatus in an operation mode that receives XHTML data from the image supply device and prints the XHTML data, after transmitting the second script; and a request unit configured to request for the image to the image supply device by designating the identification information corresponding to the file name of the image described in the XHTML information based on the relationship, when the printing apparatus is placed in the operation mode that prints XHTML data.