Patent Publication Number: US-2012033262-A1

Title: Controlling device mounted on portable type terminal device

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
     This application claims priority to Japanese Patent Application No. 2010-177339, filed on Aug. 6, 2010, the contents of which are hereby incorporated by reference into the present application. 
     TECHNICAL FIELD 
     The technique taught in the present specification relates to a controlling device mounted on a portable type terminal device such as a mobile phone, PDA (Personal Digital Assistant), portable music player, notebook PC, tablet PC, etc. 
     DESCRIPTION OF RELATED ART 
     A mobile phone provided with a main body and a display capable of rotating relative to the main body is known. In a state where the display is present in a vertical position, this mobile phone shows an image such that a left-right direction of the image is along a short side of the display and, in a state where the display is present in a horizontal position, the mobile phone shows the image such that the left-right direction of the image is along a long side of the display. 
     SUMMARY 
     In the prior art, causing a printer to print the image shown in the display has not been taken into consideration. In the present specification, a technique is taught that can give a user an appropriate printout in a case where printing of an image is instructed on a portable type terminal device in which the direction of the image relative to the display can be switched. 
     One technique disclosed in the present application is a controlling device mounted on a portable type terminal device. The portable type terminal device may comprise a display and a display controlling unit. The display may have a rectangular shape defined by a first length along a first direction and a second length along a second direction. The second length may be different from the first length. The second direction may be perpendicular to the first direction. The display controlling unit may be configured to switch between a first state and a second state. The first state may be a state in which a specific image represented by specific data is shown in the display such that an up-down direction of the specific image is along the first direction and a left-right direction of the specific image is along the second direction. The second state may be a state in which the specific image is shown in the display such that the up-down direction of the specific image is along the second direction and the left-right direction of the specific image is along the first direction. 
     The controlling device may comprise a print data creation unit and a sending unit. The print data creation unit may be configured to create print data by utilizing the specific data in a case where a print of the specific image is instructed. The print data may have a format that a printer is capable of interpreting. The sending unit may be configured to send the print data to the printer. In both of a first case where the print of the specific image is instructed in the first state and a second case where the print of the specific image is instructed in the second state, the print data creation unit may create a first type of the print data for causing the printer to perform a first type of a print. In the first type of the print, the left-right direction of the specific image may be along a short side of a print medium, and an entire length of the specific image in the left-right direction may correspond to the short side of the print medium. 
     Furthermore, a controlling method, a computer program and a non-transitory computer readable storage medium that stores the computer program, all for realizing the function of the above controlling device, are also novel and have utility. Further, a portable type terminal device comprising the above controlling device is also novel and has utility. 
    
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         FIG. 1  shows a configuration of a communication system. 
         FIG. 2  shows a flowchart of a process performed in accordance with an OS program. 
         FIG. 3  shows a flowchart of a process performed in accordance with a print application. 
         FIG. 4  shows a flowchart of a preview image display process of a first embodiment. 
         FIG. 5  shows a flowchart of a preview image renewal process of the first embodiment. 
         FIG. 6  shows a flowchart of a print data creation process of the first embodiment. 
         FIG. 7  shows processes until printing is performed. 
         FIG. 8  shows a flowchart of a preview image display process of a second embodiment. 
         FIG. 9  shows a flowchart of a preview image renewal process of the second embodiment. 
         FIG. 10  shows a flowchart of a print data creation process of the second embodiment. 
     
    
    
     EMBODIMENT 
     First Embodiment 
     Configuration of System 
     The first embodiment will be described with reference to the figures. As shown in  FIG. 1 , a communication system  2  comprises a mobile terminal device  10 , a printer  60  and a Web server  72 . The mobile terminal device  10  and the printer  60  are connected communicably via a network  50 . The network  50  is a local area network (LAN) that is compliant with Wi-Fi (registered trademark) etc., and comprises an access point (AP)  52  and a network cable  54 . The network  50  is connected with the Internet  70 . The Web server  72  is connected with the Internet  70 . The mobile terminal device  10  can be wirelessly connected with the network  50  via the AP  52 . In this case, the mobile terminal device  10  can communicate with the printer  60  via the network  50  and, further, can communicate with the Web server  72  via the network  50  and the Internet  70 . 
     Configuration of Mobile Terminal Device  10   
     The mobile terminal device  10  is a terminal device that can easily be carried by a user (i.e., a portable type terminal device). The mobile terminal device  10  is, e.g., a mobile phone, PDA, portable music player, notebook PC, tablet PC, etc. The mobile terminal device  10  comprises a display  12 , a communication interface (communication I/F)  16  and a controlling unit  20 . The units  12 ,  16 ,  20  are connected to a bus line  18 . The communication I/F  16  is an I/F for the mobile terminal device  10  to perform wireless communication. 
     The display  12  is a display for showing various types of information. The exterior of the mobile terminal device  10  is shown in  FIG. 2 . As shown in  FIG. 2 , the display  12  has a rectangular shape in which the length of a short side is L 1  and the length of a long side is L 2  (i.e., a rectangular shape in which L 2  is greater than L 1 ). Furthermore, of the two mobile terminal devices  10  shown in  FIG. 2 , the upper figure shows the long side of the display  12  extending along a perpendicular direction relative to the ground surface (i.e., the gravitational direction). Further, the lower figure shows the short side of the display  12  extending along the perpendicular direction relative to the ground surface (i.e., the gravitational direction). Below, the state of the upper figure in  FIG. 2  may be expressed as “the posture of the mobile terminal device  10  is vertically oriented”, and the state of the lower figure in  FIG. 2  may be expressed as “the posture of the mobile terminal device  10  is horizontally oriented”. Furthermore, the display  12  of the present embodiment is a touch panel which also functions as an operation unit operated by the user. 
     The controlling unit  20  comprises a CPU  22  and a program storage area  24 . The CPU  22  performs various processes in accordance with programs  26 ,  28  stored in the program storage area  24 . The function of a display controlling unit  30  is realized by the CPU  22  performing processes in accordance with the OS program  26 . Further, the functions of a print data creation unit  40 , a sending unit  42 , and a display data creation unit  44  are realized by the CPU  22  performing processes in accordance with the print application  28 . Furthermore, the OS program  26  is pre-installed in the mobile terminal device  10  at the shipment stage of the mobile terminal device  10 . Further, the print application  28  is installed in the mobile terminal device  10  by, e.g., being downloaded from a server supplied by a vendor or a manufacturer of the printer  60 . Furthermore, instead of the present embodiment, the print application  28  may be pre-installed in the mobile terminal device  10  at the shipment stage of the mobile terminal device  10 , or may be installed in the mobile terminal device  10  from a storage medium (media) such as a CD, etc. 
     Processes Performed in Accordance with OS Program  26   
     Next, the contents of processes performed in accordance with the OS program  26  will be described with reference to  FIG. 2 . Furthermore, below, the description will focus on a process for showing, in the display  12 , an image represented by Web data. Although the OS program  26  actually realizes various other functions, a description of those functions will be omitted. 
     By operating the display  12 , the user can instruct the mobile terminal device  10  to access the Web server  72 . In this case, in S 2 , the display controlling unit  30  (see  FIG. 1 ) accesses the Web server  72 , and obtains HTML (Hyper Text Markup Language) format Web data from the Web server  72 . 
     Next, in S 4 , the display controlling unit  30  determines the posture of the mobile terminal device  10  based on a value detected by a posture sensor (e.g., an acceleration sensor) that is not shown and is housed in the mobile terminal device  10 . Specifically, the display controlling unit  30  determines whether the mobile terminal device  10  is vertically oriented (the state of the upper figure in  FIG. 2 ) or horizontally oriented (the state of the lower figure in  FIG. 2 ). Furthermore, in S 4 , the display controlling unit  30  does not determine exactly whether the posture of the mobile terminal device  10  is vertically or horizontally oriented, but determines whether the posture of the mobile terminal device  10  is closer to vertical or horizontal. Consequently, e.g., in a state where the mobile terminal device  10  has been rotated clockwise  30  degrees from a vertically oriented posture, with the center of the display  12  being the center of rotation, the display controlling unit  30  determines YES in S 4  (for being closer to the vertical orientation). Further, e.g., in a state where the mobile terminal device  10  has been rotated clockwise 60 degrees from the vertically oriented posture, with the center of the display  12  being the center of rotation, the display controlling unit  30  determines NO in S 4  (for being closer to the horizontal orientation). Furthermore, in the processes below, as well, in a case where the posture of the mobile terminal device  10  is to be determined (e.g., S 42  of  FIG. 4 , S 62  of  FIG. 5 ), the determination is performed in the same manner as S 4 . 
     In a case of YES in S 4  (the case of being closer to the vertical orientation), in S 6  the display controlling unit  30  creates RGB image data for vertical orientation in BMP format using the HTML format Web data obtained in S 2 . In Web data, the up-down direction and left-right direction of an image (the letters “A” to “L” in the example of  FIG. 2 ) represented by the Web data (text data, image data etc.) is usually predetermined In the present embodiment, left to right is arranged in the sequence “A”, “B”, “C” and up to down is arranged in the sequence “A”, “D”, “G”, “J”. That is, the up-down direction of  FIG. 2  is the up-down direction of the image, and the left-right direction of  FIG. 2  is the left-right direction of the image. In S 6 , the display controlling unit  30  creates image data for vertical orientation such that the up-down direction of the image represented by Web data is along the long side of the display  12 , and the left-right direction of the image is along the short side of the display  12 . Furthermore, in the present embodiment, the image data for vertical orientation is created such that the entire length in the left-right direction of an image  80  shown in the display  12  (the length from the left edge of “A” to the right edge of “C”) is approximately equal to the length of the short side of the display  12 . 
     In S 6 , the display controlling unit  30  further supplies the image data for vertical orientation to the display  12 . Consequently, as shown in the upper figure of  FIG. 2 , the image  80  including the letters is shown in the display  12 . Furthermore, if the user scrolls the display of the display  12  downward, instead of the letters “A” to “L”, another image arranged below the letters “A” to “L” in the image data is shown in the display  12 . When S 6  ends, the process proceeds to S 9 . 
     In a case of NO in S 4  (the case of being closer to the horizontal orientation), in S 8  the display controlling unit  30  creates BMP format RGB image data for horizontal orientation using the HTML format Web data obtained in S 2 . In S 8 , the display controlling unit  30  creates the image data for horizontal orientation such that the up-down direction of the image represented by the Web data is along the short side of the display  12 , and the left-right direction of the image is along the long side of the display  12 . In S 8 , the display controlling unit  30  further supplies the image data for horizontal orientation to the display  12 . Consequently, as shown in the lower figure of  FIG. 2 , an image  90  containing the letters is shown in the display  12 . 
     Furthermore, in the present embodiment, the image data for horizontal orientation is created such that the entire length in the left-right direction of the image  90  shown in the display  12  (the length from the left edge of “A” to the right edge of “C”) is approximately equal to the length of the long side of the display  12 . Naturally, the long side of the display  12  is longer than the short side of the display  12 . Consequently, the size of a partial image (e.g., the single letter “A”) that constitutes the image  90  represented by the image data for horizontal orientation is greater than the size of the same partial image that constitutes the image  80  represented by the image data for vertical orientation. Therefore, as shown in the upper figure of  FIG. 2 , in a case where the image data for vertical orientation is supplied to the display  12 , the letters “A” to “L” are shown whereas, as shown in the lower figure of  FIG. 2 , in a case where the image data for horizontal orientation is supplied to the display  12 , only the letters “A” to “F” are shown. Furthermore, in a variant embodiment, the size of the partial image that constitutes the image  90  represented by the image data for horizontal orientation may be the same as the size of the partial image constituting the image  80  represented by the image data for vertical orientation. When S 8  ends, the process proceeds to S 9 . 
     In S 9 , the display controlling unit  30  determines whether an operation has been performed to end the displaying of the images  80 ,  90  represented by the Web data in the display  12 . In a case of NO here, the display controlling unit  30  returns to S 4 , and monitors whether the posture of the mobile terminal device  10  has changed. For example, in a case where the posture of the mobile terminal device  10  has changed from the vertical to horizontal orientation, the display controlling unit  30  determines NO in S 4 , creates the image data for horizontal orientation in S 8 , and supplies that image data to the display  12 . Further, e.g., in a case where the posture of the mobile terminal device  10  has changed from horizontal to vertical orientation, the display controlling unit  30  determines YES in S 4 , creates the image data for vertical orientation in S 6 , and supplies that image data to the display  12 . That is, the mobile terminal device  10  switches the direction of the images  80 ,  90  relative to the display  12  in accordance with the posture of the mobile terminal device  10 . Furthermore, in a case of YES in S 9 , the displaying of the images  80 ,  90  represented by the Web data ends. 
     Processes Performed in Accordance with Print Application  28   
     Next, the contents of processes performed in accordance with the print application  28  will be described with reference to  FIG. 3 . In a state where the images  80 ,  90  represented by the Web data are being shown in the display  12 , as shown in the upper or lower figure of  FIG. 2 , the user can instruct the mobile terminal device  10  to initiate the print application  28  by operating the display  12 . In this case, the process of  FIG. 3  starts. 
     Preview Image Display Process 
     First, in S 10 , the display data creation unit  44  (see  FIG. 1 ) performs a preview image display process.  FIG. 4  shows a flowchart of the preview image display process. In S 42 , the display data creation unit  44  determines the posture of the mobile terminal device  10 . In a case where the mobile terminal device  10  is vertically oriented, the display data creation unit  44  determines YES in S 42 , and proceeds to S 44 . In S 44 , the display data creation unit  44  creates preview image data for vertical orientation that represents a preview image indicating the result of portrait print (i.e., printing where a left-right direction of an image of a print target is along a short side of a print medium) of the image  80  represented by the Web data (see  FIG. 2 ), and supplies the preview image data to the display  12 . Consequently, a preview image  100  is shown in the display  12 . The preview image  100  shows a border  102  of the print medium and an image  104  (i.e., the letters “A” to “L”) corresponding to the image  80  represented by the Web data. 
     The contents of the process S 44  will be described more specifically. Since the print condition has not yet been selected by the user at the stage of S 44 , the display data creation unit  44  creates the preview image data using a print condition that was determined in advance (called “predetermined print condition” below). In the present embodiment, the predetermined print condition is color print using A4 size print medium. Consequently, the display data creation unit  44  creates the preview image data such that the aspect ratio of the border  102  in the preview image  100  is 1: square root of 2, which is the aspect ratio of A4 size. Further, the display data creation unit  44  creates the preview image data such that the image  104  in the preview image  100  is a color image. Furthermore, in the present embodiment, a predetermined margin size is adopted as the predetermined print condition. The margin size of both edges of the short side of the print medium is 1/10 smaller than the length of the short side of the print medium. Consequently, the entire length of the image  104  in the left-right direction (the length from the left edge of “A” to the right edge of “C”) is approximately equal to the length of the short side of the border  102 . Furthermore, in a variant embodiment, no margin may be adopted as the predetermined print condition. In this variant embodiment, the entire length of the image  104  in the left-right direction matches the length of the short side of the border  102 . Furthermore, as with the margins in the short side direction, the margin size of both edges of the long side of the print medium is 1/10 smaller than the length of the long side of the print medium. Consequently, the entire length in the up-down direction of the image  104  (the length from the top edge of “A” to the bottom edge of “J”) is approximately equal to the length of the long side of the border  102 . 
     In S 44 , further, the display data creation unit  44  creates the preview image data such that the left-right direction of the preview image  100  is along the short side of the display  12  and the up-down direction of the preview image  100  is along the long side of the display  12 . Furthermore, the left-right direction of the preview image  100  corresponds to the left-right direction of the image  104  in the preview image  100  (i.e., the direction in which “A”, “B”, “C” are aligned), and the up-down direction of the preview image  100  corresponds to the up-down direction of the image  104  in the preview image  100  (i.e., the direction in which “A”, “D”, “G”, “J” are aligned). Further, in S 44 , the display data creation unit  44  creates the preview image data such that the entirety of the preview image  100  indicating the print result for one piece of print medium fits into the display  12 . Furthermore, the display data creation unit  44  creates the preview image data such that the size of the entirety of the preview image  100  increases, as long as the entirety of the preview image  100  can fit into the display  12 . When S 44  ends, the preview image display process ends. 
     On the other hand, in a case where the mobile terminal device  10  is horizontally oriented, the display data creation unit  44  determines NO in S 42 , and proceeds to S 46 . In S 46 , the display data creation unit  44  creates preview image data for horizontal orientation that represents a preview image indicating the result of portrait print of the image  80  represented by the Web data (see  FIG. 2 ), and supplies that preview image data to the display  12 . Consequently, a preview image  110  is shown in the display  12 . The preview image  110  shows a border  112  of the print medium and an image  114  (i.e., the letters “A” to “L”) corresponding to the image  80  represented by the Web data. 
     In S 46 , as in S 44 , the display data creation unit  44  creates the preview image data using the predetermined print condition. Consequently, the aspect ratio of the border  112  in the preview image  110  is 1: square root of 2, and the image  114  in the preview image  110  is a color image. In S 46 , further, the display data creation unit  44  creates the preview image data such that the left-right direction of the preview image  110  (i.e., the direction in which “A”, “B”, “C” are aligned) is along the long side of the display  12 , and the up-down direction of the preview image  110  (i.e., the direction in which “A”, “D”, “G”, “J” are aligned) is along the short side of the display  12 . Other points are the same as in S 44 . When S 46  ends, the preview image display process ends. 
     As described above, in the present embodiment, since the preview image display process is performed, the user can check the print result before the images  80 ,  90  shown in the display  12  are actually printed. In particular, since the preview image  100 , etc. is shown, the user can check the preview image  100 , etc. well before setting the print condition (i.e., immediately after the print application  28  was initiated). Further, since the entirety of the preview image  100 , etc. corresponding to one piece of print medium is shown so as to fit into the display  12 , it is easy for the user to check the preview image  100 , etc. 
     Process Following the Preview Image Display Process 
     When the preview image display process ends, the process proceeds to S 12  of  FIG. 3 . In S 12 , the controlling unit  20  sends a search packet to the network  50  (see  FIG. 1 ). Consequently, the printer  60  connected with the network  50  sends a response packet to the mobile terminal device  10 . In a case where another printer (not shown) is also connected with the network  50 , that other printer also sends a response packet to the mobile terminal device  10 . The response packet includes a node name, IP address, etc. of the source printer. The controlling unit  20  displays the node names of the printers in the display  12 . The user can select the node name of one printer by operating the display  12 . In this case, the controlling unit  20  determines YES in S 14 , and proceeds to S 16 . In the present embodiment, the description below will continue using the case of the node name of the printer  60  being selected. 
     In S 16 , the controlling unit  20  asks the printer  60  for the print condition executable by the printer  60 . Consequently, the controlling unit  20  obtains information indicating the print condition executable by the printer  60 . Furthermore, the print condition executable by the printer  60  includes, e.g., size of print medium (A4 size, Letter size, etc.), type of print medium (normal paper, glossy paper etc.), print color (color print, monochrome print), capability of duplex print, etc. 
     Next, in S 18 , the controlling unit  20  displays the print condition executable by the printer  60  in the display  12  based on the information obtained in S 16 . By operating the display  12 , the user can set (i.e., select) the desired print condition. In this case, the controlling unit  20  determines YES in S 20 , and proceeds to S 22 . Furthermore, in the present embodiment, the description below will continue using the case of “Letter size” being set as the size of the print medium, and “monochrome print” being set as the print color. 
     Preview Image Renewal Process 
     Next, the contents of the preview image renewal process of S 22  will be described.  FIG. 5  shows a flowchart of the preview image renewal process. In the case where the mobile terminal device  10  is vertically oriented, the display data creation unit  44  determines YES in S 62 , and proceeds to S 64 . Except for the point that the set print condition (i.e., monochrome print, Letter size) is used, the process S 64  is the same as the process S 44  of  FIG. 4 . As a result of the process S 64 , a preview image  200  is shown in the display  12  instead of the preview image  100  of  FIG. 4 . The aspect ratio of a border  202  in the preview image  200  is 8.5:11, which is the aspect ratio of Letter size, and an image  204  in the preview image  200  is a monochrome image. Furthermore, since the aspect ratio of the print medium changes, a part of the image  204  in the preview image  200  (the part having “J”, “K”, “L”) is lost compared to the case of the preview image display process of  FIG. 4 . When S 64  ends, the preview image renewal process ends. 
     In the case where the mobile terminal device  10  is horizontally oriented, the display data creation unit  44  determines NO in S 62 , and proceeds to S 66 . Except for the point that the set print condition (i.e., monochrome print, Letter size) is used, the process S 66  is the same as the process S 46  of  FIG. 4 . The result of the process S 66 , which is shown in the display  12  instead of the preview image  110  of  FIG. 4 , is a preview image  210  indicating a border  212  having the aspect ratio 8.5:11 and an image  214  which is a monochrome image. When S 66  ends, the preview image renewal process ends. 
     In the present embodiment, as described above, since the preview image renewal process is performed, in a case e.g. where monochrome print has been set by the user, the preview image  200 , etc. indicating the print result monochrome print is displayed. Further, in a case e.g. where the size of the print medium (e.g., Letter size) has been set by the user, the preview image  200 , etc. corresponding to the aspect ratio of that size is displayed. The user can check the preview image  200 , etc. indicating the print result that corresponds to his desired print condition. 
     Process Following the Preview Image Renewal Process 
     When the preview image renewal process ends, the process proceeds to S 24  of  FIG. 3 . In S 24 , the controlling unit  20  monitors whether print start has been instructed by the user. After seeing the preview image  200 , etc. shown in the preview image renewal process of  FIG. 5 , the user can instruct print start by operating the display  12 . In this case, the controlling unit  20  determines YES in S 24 , and proceeds to S 28 . Furthermore, the user can change the posture of the mobile terminal device  10  before instructing print start. The controlling unit  20  monitors whether the posture of the mobile terminal device  10  has changed (i.e., changed from closer-to-vertically-oriented state to closer-to-horizontally-oriented state, or changed from closer-to-horizontally-oriented state to closer-to-vertically-oriented state) (S 26 ). In a case of YES here, the display data creation unit  44  performs the preview image renewal process of S 22  (see  FIG. 5 ) again. Consequently, in a case e.g. where the posture changed from the vertical to the horizontal orientation, the preview image  210  is newly displayed instead of the preview image  200 . 
     Print Data Creation Process 
     Next, the contents of the print data creation process of S 28  will be described.  FIG. 6  shows a flowchart of the print data creation process. In S 82 , the print data creation unit  40  creates print data for portrait print. Further, in S 82 , the sending unit  42  sends the print data for portrait print with the IP address of the printer  60  obtained in S 12  of  FIG. 3  as the destination. Consequently, the printer  60  prints an image  302  on a print medium  300  using the print data for portrait print. 
     The contents of the process S 82  will be described in detail. The printer  60  is usually capable of interpreting JPEG format data. Consequently, in the present embodiment, the print data creation unit  40  creates RGB bitmap data using the Web data obtained in S 2  of  FIG. 2 , and creates JPEG format print data by compressing the bitmap data. 
     Further, the print data creation unit  40  creates the print data for portrait print utilizing the set print condition (i.e., monochrome print, Letter size). That is, for the printer  60  to perform the monochrome print, the print data creation unit  40  creates bitmap data such that the RGB values of the pixels constituting the bitmap data are identical. Further, for the printer  60  to perform printing on a Letter size print medium, the print data creation unit  40  creates the bitmap data having a number of pixels corresponding to the length of the short side and the length of the long side of the Letter size print medium. Further, for the printer  60  to perform a portrait print of the image  80  represented by the Web data (see  FIG. 2 ), the print data creation unit  40  creates the bitmap data such that the left-right direction of the image  302  to be printed (i.e., the direction in which “A”, “B”, “C” are aligned) is along the short side of the print medium, and the up-down direction of the image  302  (i.e., the direction in which “A”, “D”, “G”, “H” are aligned) is along the long side of the print medium. Furthermore, the print data creation unit  40  creates the bitmap data utilizing the predetermined margin size. The margin size here is the same as the case of the preview image (e.g., the margin size of the short side direction is smaller than 1/10 of the length of the short side). Consequently, the entire length of the image  302  in the left-right direction (the length from the left edge of “A” to the right edge of “C”) is approximately equal to the length of the short side of the print medium  300 . Furthermore, in a variant embodiment, no margin may be adopted. In this variant embodiment, the entire length of the image  302  in the left-right direction is equal to the length of the short side of the print medium  300 . When S 82  ends, the print data creation process ends. 
     Result of the Present Embodiment 
       FIG. 7  shows how the image shown in the display  12  and the image printed on the print medium  300  change in accordance with the posture of the mobile terminal device  10 . Furthermore, of the figures in  FIG. 7 , the figures corresponding to “portrait print fix mode” are realized in the first embodiment. The “display dependent mode” in  FIG. 7  is utilized in a second embodiment described below. When initiation of the print application  28  is instructed with the mobile terminal device  10  being in the vertically oriented state, the preview image  100  is displayed (S 44  of  FIG. 4 ). Next, when the print condition is set, the preview image  200  is displayed (S 64  of  FIG. 5 ), and when print start is instructed, the portrait print on the print medium  300  is performed (S 82  of  FIG. 6 ). Further, when the initiation of the print application  28  is instructed with the mobile terminal device  10  being in a horizontally oriented state, the preview image  110  is displayed (S 46  of  FIG. 4 ). Next, when the print condition is set, the preview image  210  is displayed (S 66  of  FIG. 5 ), and when print start is instructed, the portrait print on the print medium  300  is performed (S 82  of  FIG. 6 ). That is, in the present embodiment, the portrait print is performed when the initiation of the print application  28  is instructed both in the state of the mobile terminal device  10  being vertically oriented and in the state of the mobile terminal device  10  being horizontally oriented. 
     For example, a configuration (called “comparative example mobile terminal device” below) is conceivable in which the printer  60  performs a portrait print in a case where the initiation of the print application  28  is instructed when the mobile terminal device  10  is in the vertically oriented state, and the printer  60  performs a landscape print (i.e., printing in which the left-right direction of the image of the print target is along the long side of the print medium) in a case where the initiation of the print application  28  is instructed when the mobile terminal device  10  is in the horizontally oriented state. In the comparative example mobile terminal device, the direction of the image relative to the print medium changes in accordance with the direction of the image relative to the display. Consequently, e.g., if the user instructs printing of a first image displayed when the comparative example mobile terminal device is in the vertically oriented state, and then instructs printing of a second image displayed when the comparative example mobile terminal device is in the horizontally oriented state, a first print medium (i.e., a portrait printout) can be obtained in which the left-right direction of the first image is along the short side, and a second print medium (i.e., a landscape printout) can be obtained in which the left-right direction of the second image is along the long side. For example, in a case where the first image is a top-level Web page (e.g., a top page), and the second image is a lower-level Web page linked from the top-level Web page, the direction of the top-level Web page relative to the first print medium differs from the direction of the lower-level Web page relative to the second print medium. That is, in the comparative example mobile terminal device, the direction of the image relative to the print medium is different in the first print medium and the second print medium, and the user obtains printouts which do not give him/her a standardized impression. 
     By contrast, in the mobile terminal device  10  of the present embodiment, the print medium  300  can be obtained in which the left-right direction of the image  80 , etc. is along the short side, in both cases where the printing is instructed of the image  80  (see  FIG. 2 ) that is shown in the mobile terminal device  10  in the vertically oriented state, and where the printing is instructed of the image  90  (see  FIG. 2 ) that is shown in the mobile terminal device  10  in the horizontally oriented state. That is, the portrait print is performed regardless of the direction of the image  80 , etc. relative to the display  12 . Consequently, the user can obtain printouts which give him/her a standardized impression. In particular, since the left-right direction of the image  80 , etc. is along the short side of the print medium  300 ; i.e., the up-down direction of the image  80 , etc. is along the long side of the print medium  300 , the number of pages of print medium needed for printing can be reduced compared to the configuration in which the left-right direction of the image  80 , etc. is along the long side of the print medium  300  (landscape print). Further, the Web data, which is the printing target in the present embodiment, is likely to have a comparatively long data configuration in its up-down direction. Consequently, there is a clear reduction in the number of pages of print medium needed for printing. Further, in the present embodiment, since the entire length of the image  80 , etc. in the left-right direction is approximately equal to the length of the short side of the print medium  300 , the situation can be prevented where the entire length of the image  80 , etc. in the left-right direction is significantly smaller than the length of the short side of the print medium  300  (i.e., the image  80 , etc. is printed significantly smaller than the print medium). According to the present embodiment, the user can obtain an appropriate printout even if printing is instructed on the portable type terminal device  10  in which the direction of the image  80 , etc. relative to the display  12  can be switched. 
     The “Web data” obtained in S 2  of  FIG. 2  is an example of the “specific data”. In  FIG. 7 , examples of the “first case” and the “second case” are respectively the situation where the print application  28  is initiated in the state where the image  80  is shown, and the situation where the print application  28  is initiated in the state where the image  90  is shown. Further, the print data created in S 82  of  FIG. 6  is an example of the “first type of print data”. Further, the preview image  100  and the preview image  110  of  FIG. 4 , and the preview image  200  of  FIG. 5  are respectively examples of the “first type of a preview image”, “second type of a preview image”, and “third type of a preview image”. 
     Second Embodiment 
     The description will focus on points differing from the first embodiment. In the present embodiment, there are two modes for causing the printer  60  to print using the print application  28 . One of the modes (called “portrait print fix mode” below) is a mode for causing the printer  60  to print a portrait print regardless of the direction of the image relative to the display  12  (i.e., the posture of the mobile terminal device  10 ). The other of the modes (called “display dependent mode” below) is a mode for causing the printer  60  to print either the portrait print or the landscape print according to the direction of the image relative to the display  12  (i.e., the posture of the mobile terminal device  10 ). The user can select one mode out of the portrait print fix mode and the display dependent mode by operating (touching) the display  12 . Information indicating the mode selected by the user is stored in a memory (not shown) in the controlling unit  20 . 
     Preview Image Display Process 
     In the present embodiment, the contents of the preview image display process ( FIG. 4 ) performed in S 10  of  FIG. 3  differ from the first embodiment.  FIG. 8  shows a flowchart of the preview image display process of the present embodiment. In S 40 , the display data creation unit  44  reads the information in memory (not shown) to determine which mode, of the portrait print fix mode and the display dependent mode, has been selected by the user. In a case where the portrait print fix mode has been selected, the display data creation unit  44  determines YES in S 40 , and proceeds to S 42 . Further, in a case where the display dependent mode has been selected, the display data creation unit  44  determines NO in S 40 , and proceeds to S 48 . S 42  to S 46 , which are performed in the case of the portrait print fix mode, are the same as S 42  to S 46  of  FIG. 4  of the first embodiment. 
     Display Dependent Mode 
     In S 48 , the display data creation unit  44  determines the posture of the mobile terminal device  10 . In the case where the mobile terminal device  10  is vertically oriented, the display data creation unit  44  determines YES in S 48 , and proceeds to S 44 . In the case where the mobile terminal device  10  is horizontally oriented, the display data creation unit  44  determines NO in S 48 , and proceeds to S 50 . In S 50 , the display data creation unit  44  creates preview image data for horizontal orientation that represents a preview image indicating the result of landscape print of the image  90  represented by the Web data (see  FIG. 2 ), and supplies the preview image data to the display  12 . Consequently, a preview image  120  is shown in the display  12 . The preview image  120  shows a border  122  of the print medium and an image  124  (i.e., the letters “A” to “F”) corresponding to the image  90  represented by the Web data. 
     In S 50 , as with S 44 , the display data creation unit  44  creates the preview image data using the predetermined print condition (color print using A4 print medium). Consequently, the aspect ratio of the border  122  in the preview image  120  is 1: square root of 2, and the image  124  in the preview image  120  is a color image. In S 50 , further, the display data creation unit  44  creates the preview image data such that the left-right direction of the preview image  120  (i.e., the direction in which “A”, “B”, “C” are aligned) is along the long side of the display  12 , and the up-down direction of the preview image  120  (i.e., the direction in which “A”, “D” are aligned) is along the short side of the display  12 . Furthermore, in the present embodiment, the predetermined margin size is adopted as the predetermined print condition. Consequently, the entire length of the image  124  in the left-right direction (the length from the left edge of “A” to the right edge of “C”) is approximately equal to the length of the long side of the border  122 . Consequently, the entire length of the image  124  in the left-right direction in the preview image  120  is greater than the entire length of the image  104  in the left-right direction in the preview image  100  shown in S 44 . Consequently, the size of a partial image (e.g., the single letter “A”) that constitutes the image  124  in the preview image  120  is greater than the size of the same partial image that constitutes the image  104  in the preview image  100 . Other points are the same as S 44 . When S 50  ends, the preview image display process ends. 
     Preview Image Renewal Process 
     In the present embodiment, the contents of the preview image renewal process performed in S 22  of  FIG. 3  differ from the first embodiment.  FIG. 9  shows a flowchart of the preview image renewal process of the present embodiment. In S 60 , the display data creation unit  44  determines which mode, of the portrait print fix mode and the display dependent mode, has been selected by the user. In a case where the portrait print fix mode has been selected, the display data creation unit  44  determines YES in S 60 , and proceeds to S 62 . Further, in a case where the display dependent mode has been selected, the display data creation unit  44  determines NO in S 60 , and proceeds to S 68 . S 62  to S 66 , which are performed in the case of the portrait print fix mode, are the same as S 62  to S 66  of  FIG. 5  of the first embodiment. 
     Display Dependent Mode 
     In S 68 , the display data creation unit  44  determines the posture of the mobile terminal device  10 . In the case where the mobile terminal device  10  is vertically oriented, the display data creation unit  44  determines YES in S 68 , and proceeds to S 64 . In the case where the mobile terminal device  10  is horizontally oriented, the display data creation unit  44  determines NO in S 68 , and proceeds to S 70 . Except for the point that the set print condition (i.e., monochrome print, Letter size) is used, the process S 70  is the same as the process S 50  of  FIG. 8 . As a result of the process S 70 , a preview image  220  is shown in the display  12  instead of the preview image  120  of  FIG. 8 . The preview image  220  has a border  222  with the aspect ratio 8. 5:11, and an image  224  which is a monochrome image. Furthermore, since the aspect ratio of the print medium changes, a part of the image  224  in the preview image  220  (the part having “C”, “F”) is lost compared to the case of the preview image display process of  FIG. 8 . When S 70  ends, the preview image renewal process ends. 
     Print Data Creation Process 
     In the present embodiment, the contents of the print data creation process performed in S 28  of  FIG. 3  differ from the first embodiment.  FIG. 10  shows a flowchart of the print data creation process of the present embodiment. In S 80 , the print data creation unit  40  (see  FIG. 1 ) determines which mode, of the portrait print fix mode and the display dependent mode, has been selected by the user. In the case where the portrait print fix mode has been selected, the print data creation unit  40  determines YES in S 80 , and proceeds to S 82 . S 82 , which is performed in the case where the portrait print fix mode has been selected, is the same as S 82  of  FIG. 6  of the first embodiment. Further, in the case where the display dependent mode has been selected, the print data creation unit  40  determines NO in S 80 , and proceeds to S 84 . 
     Display Dependent Mode 
     In S 84 , the print data creation unit  40  determines the posture of the mobile terminal device  10 . In the case where the mobile terminal device  10  is vertically oriented, the print data creation unit  40  determines YES in S 84 , and proceeds to S 82 . Consequently, the printer  60  performs a portrait print of the image  302  on the print medium  300 . In the case where the mobile terminal device  10  is horizontally oriented, the print data creation unit  40  determines NO in S 84 , and proceeds to S 86 . In the process S 86 , the print data creation unit  40  creates print data for landscape print. Further, in S 86 , the sending unit  42  sends the print data for landscape print, with the IP address of the printer  60  obtained in S 12  of  FIG. 3  as the destination. Consequently, the printer  60  prints an image  402  on the print medium  300  utilizing the print data for landscape print. 
     The process S 86  is fundamentally the same as the process S 82 . However, in order to cause the printer  60  to perform a landscape print of the image  90  represented by the Web data (see  FIG. 2 ), the print data creation unit  40  creates bitmap data such that the left-right direction of the image  402  to be printed (i.e., the direction in which “A”, “B”, “C” are aligned) is along the long side of the print medium, and the up-down direction of the image  402  (i.e., the direction in which “A”, “D” are aligned) is along the short side of the print medium. Furthermore, as with the process S 82 , since the predetermined margin is used, the entire length of the image  402  in the left-right direction (the length from the left edge of “A” to the right edge of “C”) is approximately equal to the length of the long side of the print medium  300 . Of course, the length of the long side of the print medium  300  is longer than the length of the short side of the print medium  300 . Consequently, the entire length in the left-right direction of the image  402  obtained by landscape printing is longer than the entire length in the left-right direction of the image  302  obtained by portrait printing. Consequently, the size of the partial image (e.g., the single letter “A”) that constitutes the image  402  is greater than the size of the same partialimage that constitutes the image  302 . 
     Furthermore, in the print data created in S 86 , since the size of each partial image (each letter “A” etc.) is larger, only “A” to “F” is printed on the one piece of print medium  300 , and “G” to “L” is not printed. Consequently, in S 86 , the print data creation unit  40  further creates print data for printing “G” to “L” on another piece of print medium. That is, the number of pieces of print medium required is greater in performing the process S 86  than in performing the process S 82 . When S 86  ends, the print data creation process ends. 
     Result of the Present Embodiment 
     As shown in  FIG. 7 , in the display dependent mode, when the print application  28  is initiated when the mobile terminal device  10  is in the vertically oriented state, the preview image  100  is displayed (S 44  of  FIG. 8 ). Next, when the print condition is set, the preview image  200  is displayed (S 64  of  FIG. 9 ), and when print start is instructed, the portrait print is performed on the print medium  300  (S 82  of  FIG. 10 ). Further, in the display dependent mode, when the mobile terminal device  10  is in the horizontally oriented state when the initiation of the print application  28  is instructed, the preview image  120  is displayed (S 50  of  FIG. 8 ). Next, when the print condition is set, the preview image  220  is displayed (S 70  of  FIG. 9 ), and when print start is instructed, the landscape print is performed on the print medium  300  (S 86  of  FIG. 10 ). That is, in the display dependent mode, the printing can be switched between portrait print and landscape print when the initiation of the print application  28  is instructed, in accordance with the terminal device  10  having been in the vertically oriented state or the horizontally oriented state at the time of the instruction. 
     In the present embodiment, not only the portrait print fix mode but also the display dependent mode is adopted. Since the user can select the mode, the user can obtain the printout he/she desires. Furthermore, in the present embodiment, the print data created in S 86  of  FIG. 10  is an example of the “second type of the print data”. 
     Variant Embodiment 1 
     In the above embodiments, HTML was adopted as the data format of the “specific data”. However, XHTML format Web data, JPEG format data, BMP format data, etc. may be adopted instead. 
     Variant Embodiment 2 
     In the above embodiments, JPEG was adopted as the data format of the “print data”. However, PS (Post Script), XPS, PDF, etc. may be adopted instead. Generally speaking, the print data may have any format that the printer is capable of interpreting. Furthermore, the print data creation unit  40  may create any print data that has a format that the printer  60  is capable of interpreting, this format being obtained as a result of an inquiry to the printer  60 . 
     Variant Embodiment 3 
     In the above embodiments, the display controlling unit  30  switches the direction of the image relative to the display  12  in accordance with the posture of the mobile terminal device  10 . However, instead, the display controlling unit  30  may switch the direction of the image relative to the display  12  in a case where a predetermined button is operated. Further, the display controlling unit  30  may switch the direction of the image relative to the display  12  in a case where the display  12  moves (e.g., rotates) relative to the main body. 
     Variant Embodiment 4 
     Furthermore, in the above embodiments, the predetermined print condition adopted e.g. in S 44  of  FIG. 4 , etc. is a color print using A4 size print medium. However, instead, the controlling unit  20  may store the print condition each time the print condition is set by the user, and may adopt this most recently set print condition as the predetermined print condition in S 44  of  FIG. 4 , etc. 
     Variant Embodiment 5 
     Furthermore, the functions of the units taught in the present specification (e.g., the display controlling unit  30 , the print data creation unit  40 , the sending unit  42 , the display data creation unit  44 ) may be realized by software  26 ,  28 , as shown in the embodiment, or instead may be realized by hardware such as a logic circuit.