Patent ID: 8610925

Claim:
An image forming apparatus connectable to an external device to print an XML (extensible markup language) Paper Specification (XPS) file, comprising: a communication interface to receive printing data from the external device; a determiner to determine whether the received printing data is a compressed file; an extractor to extract a file name in at least one local file header of the printing data when the received printing data is the compressed file; a distinguisher to determine a presence or absence of an XPS file by comparing an extension of the extracted file name with a predefined extension to distinguish the XPS file; and an image former to print the printing data in the determined XPS file, wherein, when the received printing data is not the XPS file, the distinguisher determines whether the received printing data is PDL (Page Description Language) printing data, and the image former prints the received printing data using a PDL emulation, and does not print the printing data when the received printing data is neither the XPS file nor the PDL printing data.