A nontransitory computer-readable recording medium storing a control program of an image forming apparatus for printing a displayed image on a display media including a portable display terminal set on a platen, said control program causing said image forming apparatus to perform a process comprising steps of:
- (A) determining whether or not electronic information on said displayed image can be received from outside of said image forming apparatus;
- (B) generating converted data for printing said image data by receiving said electronic information from outside of said image forming apparatus and converting said electronic information into a printable format when it is determined that said electronic information can be received from outside;
- (C) generating scanned data for printing by scanning said displayed image when it is determined that said electronic information cannot be received from outside;
- (D) printing said displayed image based on either said converted data generated in said step (B) or said scanned data generated in said step (C);
- (E) selecting between printing by using said converted data and printing using said scanned data;
- and
- (F) determining whether or not the display media is the portable display terminal;
- and
- (G) (a) when the display media is not the portable display terminal, or when the display media is the portable display terminal and the electronic information cannot be received:
- displaying a first set of items which are permitted to be selected for printing by using said scanned data;
- and
- (b) when the display media is the portable display terminal and the electronic information can be received:
- displaying both (i) a second set of items which are permitted to be selected for printing by using said converted data and (ii) the first set of items which are permitted to be selected for printing by using said scanned data.