1. A method comprising: receiving by a device information as a document with interpreting instructions for displaying the information; interpreting the interpreting instructions; converting, on the basis of the interpretation, the information to be displayed on a display; examining, in connection with the conversion of the document, if the document can be displayed without optimization on the display, wherein if, on the basis of the examination, it is detected that the displaying of the document requires optimization, the method further comprises optimizing the document; in other cases, the method comprises outputting the document in an unoptimized format; defining by the device a first limit value for a length of a first side of an image and a second limit value for a length of a second side of the image; determining a maximum length for information fitting on the display in the width direction; and comparing it with the quantity of information to be displayed of the document in the width direction; wherein if it is detected that the width of the information to be displayed exceeds said maximum length, optimization is implemented, and when the information causing the optimization is an image, the method further comprises: omitting displaying of the image when the length of the first side of the image is smaller than or equal to said first limit value, or when the width of the image is smaller than or equal to the second limit value and the height is greater than or equal to the second limit value, otherwise the method further comprises downsizing the image by maintaining the aspect ratio.
2. The method according to claim 1 , wherein if the information causing the optimization is text, the method further comprises dividing a text line exceeding the maximum length into two or more lines.