Patent ID: 8441678

Claim:
An image forming apparatus, comprising: a printing unit; a communication interface unit to receive an XML paper specification (XPS) file; an XPS file processing unit to convert the XPS file into an output data; and wherein the XPS file processing unit comprises: a determination unit to determine if a printing paper information is set for the XPS file; a search unit to search for the printing paper to print the XPS file based on the information regarding the height and width of the FixedPage in the XPS file when the printing paper information is not set for the XPS file; and a data generation unit to convert the XPS file into the output data corresponding to the searched printing paper; a control unit to control the printing unit to print the output data, wherein the XPS file processing unit determines if printing paper information is set for in the XPS file, and converts the XPS file into the output data corresponding to the printing paper information when the printing paper information is set in the XPS file.