A non-transitory computer-readable recording medium for an information processing apparatus having a communication interface configured to communicate with a printer, an input interface and a controller, the controller being configured to read an application which is configured to output image data, the recording medium storing computer-readable printing data generating instructions which cause, when executed by the controller, the information processing apparatus to automatically perform: an identifying process of identifying, based on identifying data, a sheet size of a sheet which is to be used for printing, the identifying data being received, through the input interface, in the identifying process, the identifying data indicating the sheet size to be used for printing; a receiving process of receiving image data which is output by the application; when the image data received in the receiving process represents an image in which a first object is arranged, the size of the image is a first size, and the sheet size identified in the identifying process is a second size which is different from the first size: identifying information regarding the position of the first object within the image represented by the received image data by analyzing the received image data, said identifying comprising detecting image data representing a code image (84, 86) contained in the first object by generating at least two projection histograms (H1, H2, H3) of the code image (84, 86) in perpendicular directions to each other, and analyzing the histograms to identify the position information indicating a position of the first object represented by the image data; an extracting process of extracting object image data representing the first object from the image data received in the receiving process based on the position information; a generating process of generating printing data for causing a printer, when connected with the information processing apparatus through the communication interface, to print an image in which a first object represented by the object image data extracted in the extracting process is arranged on the sheet having the second size; and an outputting process of outputting the printing data generated in the generating process, the printing data being to be transmitted to the printer through the communication interface. an identifying process of identifying, based on identifying data, a sheet size of a sheet which is to be used for printing, the identifying data being received, through the input interface, in the identifying process, the identifying data indicating the sheet size to be used for printing; a receiving process of receiving image data which is output by the application; when the image data received in the receiving process represents an image in which a first object is arranged, the size of the image is a first size, and the sheet size identified in the identifying process is a second size which is different from the first size: identifying information regarding the position of the first object within the image represented by the received image data by analyzing the received image data, said identifying comprising detecting image data representing a code image (84, 86) contained in the first object by generating at least two projection histograms (H1, H2, H3) of the code image (84, 86) in perpendicular directions to each other, and analyzing the histograms to identify the position information indicating a position of the first object represented by the image data; an extracting process of extracting object image data representing the first object from the image data received in the receiving process based on the position information; a generating process of generating printing data for causing a printer, when connected with the information processing apparatus through the communication interface, to print an image in which a first object represented by the object image data extracted in the extracting process is arranged on the sheet having the second size; and an outputting process of outputting the printing data generated in the generating process, the printing data being to be transmitted to the printer through the communication interface.